Comments (1)
Hi @mbhele-xrdigital , thanks for bringing this up.
The current design of policy behavior is explained here: https://zenstack.dev/docs/the-complete-guide/part1/access-policy/model-level#evaluation-of-model-level-policies.
Basically, for relation connect/disconnect, the side that gets the foreign key field update is required to be "updatable". However, implicit many-to-many is a special case because there's an implied "join table" that connects both sides. Currently, ZenStack is conservative and requires both sides to be updatable.
There was a suggestion for utilizing the field-level policies to fine-tune this behavior: #856
It hasn't been implemented yet.
from zenstack.
Related Issues (20)
- [BUG] Query Discrepancy with Selected Relation Fields HOT 2
- [Language Server] No autocompletion is provided when accessing `auth().`
- input error when querying compound key entry HOT 2
- [BUG] Types generated when using `@default(auth().id)` are not compatible with third party libraryes HOT 2
- [Feature Request] TRPC plugin should generate router procedure for permission checker
- Error - Maximum call stack size exceeded HOT 6
- Policy filtering should respect field-level access policies HOT 1
- [Feature Request] Reuse primitive types with validation rules
- [Feature Request] Compatibility with Prisma 5.14 `createManyAndReturn` HOT 3
- [Feature Request] Hono Support HOT 1
- [Feature Request] Supporting comparing fields of different models in policy rules HOT 1
- [Feature Request] Allow Disabling of Version Check HOT 1
- Prisma schema validation error - Relation map argument is too long HOT 1
- _count on inherited model not working HOT 2
- [Feature Request] Querying genererated API with fetch HOT 2
- [TanStack Query] UseInfinite hooks should make the `initialPageParam` option field optional and use the args argument to fill it HOT 1
- [Feature Request] Access control for Prisma Pulse
- Polymorphic model with inherited relation error HOT 3
- Futures do not work with date fields HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenstack.