hasura / hasura/graphql-engine
Permission "inheritance"
Open
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
Can a table "inherit" its permissions from a related object?
For example, I have `chats` and `messages` tables, when the `messages` table has an object relationship to `chats`(one chat, many messages). I set the `chats` select permissions (let say it's a complex permissions object), and I want that only messages of permitted chats will be selectable.
I know I can use the chat relationship itself in the messages permissions, and copy the complex permissions object, but I wonder if there is a shortcut for this "parent-child" permission.
Contributor guide
Assessment
This issue has not been assessed yet.