Skip to content

Commit 29c02f0

Browse files
committed
resource products in plural form
1 parent 6cc584c commit 29c02f0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/AuthRBAC.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ Replacement for the `<TabbedShowLayout.Tab>` that only renders a tab if the user
635635
Add a `name` prop to the `<Tab>` so you can reference it in the permissions.
636636
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>`.
637637

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' }`.
639639
640640

641641
`<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
805805
Add a `name` prop to the `<FormTab>` so you can reference it in the permissions.
806806
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>`.
807807

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' }`.
809809
810810
`<FormTab>` also only renders the child inputs for which the user has the 'write' permissions.
811811

@@ -921,7 +921,7 @@ Replacement for the default `<AccordionFormPanel>` that only renders a section i
921921
Add a `name` prop to the `<AccordionFormPanel>` so you can reference it in the permissions.
922922
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>`.
923923

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' }`.
925925
926926
`<AccordionFormPanel>` also only renders the child inputs for which the user has the 'write' permissions.
927927

@@ -981,7 +981,7 @@ Replacement for the default `<AccordionSection>` that only renders a section if
981981
Add a `name` prop to the `<AccordionSection>` so you can reference it in the permissions.
982982
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>`.
983983

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' }`.
985985
986986
`<AccordionSection>` also only renders the child inputs for which the user has the 'write' permissions.
987987

@@ -1104,7 +1104,7 @@ Use it with `<LongForm>` from `@react-admin/ra-enterprise` to only display the s
11041104
Add a `name` prop to the `<LongForm.Section>` so you can reference it in the permissions.
11051105
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>`.
11061106

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' }`.
11081108
11091109
`<LongForm.Section>` also only renders the child inputs for which the user has the 'write' permissions.
11101110

@@ -1225,7 +1225,7 @@ Use it with `<WizardForm>` from `@react-admin/ra-enterprise` to only display the
12251225
Add a `name` prop to the `<WizardForm.Step>` so you can reference it in the permissions.
12261226
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>`.
12271227

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' }`.
12291229
12301230
`<WizardForm.Step>` also only renders the child inputs for which the user has the 'write' permissions.
12311231

0 commit comments

Comments
 (0)