Skip to content

Commit f2a07fa

Browse files
adguernierslax57
andauthored
correct sentence
Co-authored-by: Jean-Baptiste Kaiser <jb@marmelab.com>
1 parent 1935e16 commit f2a07fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/canAccess.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const MyApp = () => (
121121
In this example, users will see the list of last products and the list of last categories but they won't be able to see the list of last orders.
122122

123123

124-
**Note**: that [ra-rbac's `<Resource>` component](./AuthRBAC.md#resource) check automatically the `list`, `show `, `create` and `edit` actions, so you don't actually need to use `canAccess` if you want to restrict a whole resource.
124+
**Note**: [ra-rbac's `<Resource>` component](./AuthRBAC.md#resource) automatically checks for the `list`, `show`, `create` and `edit` actions, so you don't actually need to use `canAccess` if you want to restrict a whole resource.
125125

126126
```tsx
127127
import { Admin, ListGuesser, EditGuesser } from 'react-admin'; // do not import Resource here

0 commit comments

Comments
 (0)