You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/AuthRBAC.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -635,7 +635,7 @@ Replacement for the `<TabbedShowLayout.Tab>` that only renders a tab if the user
635
635
Add a `name` prop to the `<Tab>` so you can reference it in the permissions.
636
636
Then, to allow users to access a particular `<Tab>`, update the permissions definition as follows: `{ action: 'read', resource: '{RESOURCE}.tab.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<Tab>`.
637
637
638
-
> For instance, to allow users access to the following tab `<Tab label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'read', resource: 'products.tab.description' }`.
638
+
> For instance, to allow users access to the following tab `<Tab label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'read', resource: 'products.tab.description' }`.
639
639
640
640
641
641
`<Tab>` also only renders the child fields for which the user has the 'read' permissions.
@@ -805,7 +805,7 @@ Replacement for the default `<FormTab>` that only renders a tab if the user has
805
805
Add a `name` prop to the `<FormTab>` so you can reference it in the permissions.
806
806
Then, to allow users to access a particular `<FormTab>`, update the permissions definition as follows: `{ action: 'write', resource: '{RESOURCE}.tab.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<FormTab>`.
807
807
808
-
> For instance, to allow users access to the following tab `<FormTab label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'write', resource: 'products.tab.description' }`.
808
+
> For instance, to allow users access to the following tab `<FormTab label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'write', resource: 'products.tab.description' }`.
809
809
810
810
`<FormTab>` also only renders the child inputs for which the user has the 'write' permissions.
811
811
@@ -921,7 +921,7 @@ Replacement for the default `<AccordionFormPanel>` that only renders a section i
921
921
Add a `name` prop to the `<AccordionFormPanel>` so you can reference it in the permissions.
922
922
Then, to allow users to access a particular `<AccordionFormPanel>`, update the permissions definition as follows: `{ action: 'write', resource: '{RESOURCE}.panel.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<FormTab>`.
923
923
924
-
> For instance, to allow users access to the following tab `<AccordionFormPanel label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'write', resource: 'products.panel.description' }`.
924
+
> For instance, to allow users access to the following tab `<AccordionFormPanel label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'write', resource: 'products.panel.description' }`.
925
925
926
926
`<AccordionFormPanel>` also only renders the child inputs for which the user has the 'write' permissions.
927
927
@@ -981,7 +981,7 @@ Replacement for the default `<AccordionSection>` that only renders a section if
981
981
Add a `name` prop to the `<AccordionSection>` so you can reference it in the permissions.
982
982
Then, to allow users to access a particular `<AccordionSection>`, update the permissions definition as follows: `{ action: 'write', resource: '{RESOURCE}.section.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<AccordionSection>`.
983
983
984
-
> For instance, to allow users access to the following tab `<AccordionSection label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'write', resource: 'products.section.description' }`.
984
+
> For instance, to allow users access to the following tab `<AccordionSection label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'write', resource: 'products.section.description' }`.
985
985
986
986
`<AccordionSection>` also only renders the child inputs for which the user has the 'write' permissions.
987
987
@@ -1104,7 +1104,7 @@ Use it with `<LongForm>` from `@react-admin/ra-enterprise` to only display the s
1104
1104
Add a `name` prop to the `<LongForm.Section>` so you can reference it in the permissions.
1105
1105
Then, to allow users to access a particular `<LongForm.Section>`, update the permissions definition as follows: `{ action: 'write', resource: '{RESOURCE}.section.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<LongForm.Section>`.
1106
1106
1107
-
> For instance, to allow users access to the following tab `<LongForm.Section label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'write', resource: 'products.section.description' }`.
1107
+
> For instance, to allow users access to the following tab `<LongForm.Section label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'write', resource: 'products.section.description' }`.
1108
1108
1109
1109
`<LongForm.Section>` also only renders the child inputs for which the user has the 'write' permissions.
1110
1110
@@ -1225,7 +1225,7 @@ Use it with `<WizardForm>` from `@react-admin/ra-enterprise` to only display the
1225
1225
Add a `name` prop to the `<WizardForm.Step>` so you can reference it in the permissions.
1226
1226
Then, to allow users to access a particular `<WizardForm.Step>`, update the permissions definition as follows: `{ action: 'write', resource: '{RESOURCE}.step.{NAME}' }`, where `RESOURCE` is the resource name, and `NAME` the name you provided to the `<WizardForm.Step>`.
1227
1227
1228
-
> For instance, to allow users access to the following tab `<WizardForm.Step label="Description" name="description">` in `product` resource, add this line in permissions: `{ action: 'write', resource: 'products.step.description' }`.
1228
+
> For instance, to allow users access to the following tab `<WizardForm.Step label="Description" name="description">` in `products` resource, add this line in permissions: `{ action: 'write', resource: 'products.step.description' }`.
1229
1229
1230
1230
`<WizardForm.Step>` also only renders the child inputs for which the user has the 'write' permissions.
0 commit comments