Prisma, Authorization, Typescript, Web Development.
read by owner or org members (if public) @@allow('read', owner == auth() || (org.members?[user == auth()] && public)) // when create, owner must be set to current user, // and user must be in the org @@allow('create', owner == auth() && org.members?[user == auth()]) // can be updated by owner //