plainblack / ving

An opinionated web services starter for Nuxt3 that provides REST and per-field privileges out of the box.
https://plainblack.github.io/ving/
58 stars 7 forks source link

VingRecord isOwner and therefore VingSchema need a way to inherit owner #40

Closed rizen closed 5 months ago

rizen commented 5 months ago

As an example, S3File has an owner of $userId, but we don't want to also store $userId in S3FileCitation, so we should be able to reference that whoever owns the S3File that the citation is attached to also owns the citation

rizen commented 5 months ago

we could override isOwner on a per subclass basis, but that's not then discoverable via the schema