hasura / hasura/graphql-engine

Permission "inheritance"

Open
#6,979 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.