Skip to content

Commit 6cc584c

Browse files
committed
fix typo in LongForm.Section
1 parent c177f80 commit 6cc584c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/AuthRBAC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,9 @@ Replacement for the default `<LongForm.Section>` that only renders a section if
11021102
Use it with `<LongForm>` from `@react-admin/ra-enterprise` to only display the section the user has access to in the form.
11031103

11041104
Add a `name` prop to the `<LongForm.Section>` so you can reference it in the permissions.
1105-
Then, to allow users to access a particular `<LongForm.Section>`, 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 `<LongForm.Section>`.
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>`.
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.panel.description' }`.
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' }`.
11081108
11091109
`<LongForm.Section>` also only renders the child inputs for which the user has the 'write' permissions.
11101110

0 commit comments

Comments
 (0)