console: add doc link for view permissions

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9717
GitOrigin-RevId: f1539ee98e5b0d1691af697a9049e7d861f7bbf1
This commit is contained in:
Vijay Prasanna 2023-06-29 16:42:19 +05:30 committed by hasura-bot
parent 5d027f9861
commit 5c0ade42e0

View File

@ -1998,7 +1998,20 @@ class Permissions extends Component {
<br />
<div className={styles.padd_left_remove}>
<div className={`${styles.padd_remove} col-xs-12`}>
<h4 className={styles.subheading_text}>Permissions</h4>
<h4 className={styles.subheading_text}>
Permissions{' '}
{currentTableSchema?.table_type === 'VIEW' ? (
<LearnMoreLink
href="https://hasura.io/docs/latest/schema/postgres/views/#pg-create-views"
text="(Learn more about view permissions)"
/>
) : (
<LearnMoreLink
href="https://hasura.io/docs/latest/auth/authorization/permissions/"
text="(Learn more about table permissions)"
/>
)}
</h4>
{getPermissionsTable(
currentTableSchema,
supportedQueryTypes,