20
Deep Validation in Create Permission
Source: directus/directus#25460 · opened by @maazamaani
Summary Requirement Users should not be able to create an entry with relation to entries they have no permission to. Problem Cannot define "create" validation rule based on a related field. (except self related collections) Basic Example Example In this data model, users should not be able to create a many_collection entry that its one_collection status is draft • many_collection * id * one_collection (m2o) • one_collection * id * status Problem in "create" permission, no option to add rule based on one_collection.status. (except when many_collection and one_collection are same) <img width="991" height="542" alt="Screenshot 1404-04-24 at 14 28 05" src=" /> Motivation This has a wide range of use cases that some results in security issues.. for example in multi tenant architecture: We have a tenant field in each collection and users are limited to add, edit and delete entries…
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow validation on nested relational values through parent validation settings
1 vote · 0 comments
Reusable Field Templates for Consistent and Efficient Schema Design
6 votes · 0 comments
A way for a hook to identify root calls
1 vote · 0 comments
Support SSO login for native apps
6 votes · 0 comments
Allow ignore non-existing field rule
6 votes · 0 comments
No comments yet.