From d896ad15520f02ee4dde5054d4de704d79406212 Mon Sep 17 00:00:00 2001 From: hasura-bot Date: Thu, 2 May 2024 18:23:35 +0530 Subject: [PATCH] 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 --- docs/docs/auth/authorization/inherited-roles.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/auth/authorization/inherited-roles.mdx b/docs/docs/auth/authorization/inherited-roles.mdx index 6c2e1d98a7f..ff67aec5dc2 100644 --- a/docs/docs/auth/authorization/inherited-roles.mdx +++ b/docs/docs/auth/authorization/inherited-roles.mdx @@ -172,11 +172,11 @@ Let's take the example of an `users` table with the following columns: 2. `name` - 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`. -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 `anonymous` roles.