mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-10-26 10:20:54 +03:00
docs: fix inherited role select permission example
GITHUB_PR_NUMBER: 10221 GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/10221 PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10787 Co-authored-by: Nick Amoscato <847532+namoscato@users.noreply.github.com> GitOrigin-RevId: 55371f6050d20f3c5ca6c75d91998cd646216bf1
This commit is contained in:
parent
11240e2bff
commit
d896ad1552
@ -172,11 +172,11 @@ Let's take the example of an `users` table with the following columns:
|
|||||||
2. `name` - Text
|
2. `name` - Text
|
||||||
3. `email` - Text
|
3. `email` - Text
|
||||||
|
|
||||||
There are two roles defined namely `employee` and `manager`.
|
There are two roles defined:
|
||||||
|
|
||||||
1. User role - The user role will be able to access all columns of _**their row**_ when the session variable
|
1. `user` - The user role will be able to access all columns of _**their row**_ when the session variable
|
||||||
`X-Hasura-User-Id` is equal to the `id`.
|
`X-Hasura-User-Id` is equal to the `id`.
|
||||||
2. Anonymous role - The anonymous role will be able to access only the `id` and `name` columns of all the users.
|
2. `anonymous` - The anonymous role will be able to access only the `id` and `name` columns of all the users.
|
||||||
|
|
||||||
Let's create a new inherited role called `user_anonymous_inherited_role` which inherits from the `user` and the
|
Let's create a new inherited role called `user_anonymous_inherited_role` which inherits from the `user` and the
|
||||||
`anonymous` roles.
|
`anonymous` roles.
|
||||||
|
Loading…
Reference in New Issue
Block a user