Policy and edit page access #5443
Unanswered
valentinrougier39
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Hi,
There is something I don't understand. I have created a resource for a model (which we will call Model 1). This model has positionned policies.
Now I want to give a partial access to a user who has other rights (we call him X right), but not the right to modify Model1.
I found the authorizedToUpdate() method which allowed me to display the modification button on the list according to my rights. So a person who doesn't have the right to modify Model1 but who has the X right can see the button. For the button it works fine ! But when we click on the edit button, we get a 403 page. So it does not take into account the authorizedToUpdate() method for this page.
Do you have a solution please ? Thanks
Beta Was this translation helpful? Give feedback.
All reactions