Skip to content

Commit

Permalink
Fix useCanAccess jsDoc example
Browse files Browse the repository at this point in the history
Co-authored-by: Francois Zaninotto <[email protected]>
  • Loading branch information
djhi and fzaninotto authored Sep 3, 2024
1 parent 416d9c8 commit 93bddcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/auth/useCanAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { useEvent } from '../util';
* import { useCanAccess } from 'react-admin';
*
* const PostDetail = () => {
* const { isPending, permissions } = useCanAccess({
* const { isPending, canAccess } = useCanAccess({
* resource: 'posts',
* action: 'read',
* });
Expand Down

0 comments on commit 93bddcc

Please sign in to comment.