-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Milestone
Description
Description and expected behavior
While writing the policies, I found out that the update permission in my @@deny is not working as expected. The following two policies will still update the id:
@@deny("update", future().id != id)
@@allow("update", true)I also found out, that I can't run npx zenstack generate, when I write it like this:
@@deny("update", future().id != this.id)
// error
node_modules/.zenstack/policy.ts:1130:29 - error TS2304: Cannot find name 'id'.Environment:
- ZenStack version: 1.12.0
- Prisma version: 5.12.1
- Database type: Postgresql
milimyname and ymc9