Skip to content

Commit

Permalink
Fix posts.authors permissions checks
Browse files Browse the repository at this point in the history
  • Loading branch information
React-Admin CI committed Oct 17, 2024
1 parent 0a85df1 commit ecb319b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/simple/src/posts/PostCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const PostCreate = () => {
<TextInput source="url" defaultValue="" />
</SimpleFormIterator>
</ArrayInput>
<CanAccess action="edit" resource="post.authors">
<CanAccess action="edit" resource="posts.authors">
<ArrayInput source="authors">
<SimpleFormIterator>
<ReferenceInput source="user_id" reference="users">
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/posts/PostEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const PostEdit = () => {
>
<ImageField source="src" title="title" />
</ImageInput>
<CanAccess action="edit" resource="post.authors">
<CanAccess action="edit" resource="posts.authors">
<ArrayInput source="authors">
<SimpleFormIterator inline>
<ReferenceInput
Expand Down

0 comments on commit ecb319b

Please sign in to comment.