Here is the context : I use Symfony 3.4 with api-platform. I have two class : Supplier Product I want to list all the supplier's product ...
Here is the context : I use Symfony 3.4 with api-platform. I have two class : Supplier Product I want to list all the supplier's product ...
Official documentation on Symfony pages suggest using ROLE_ADMIN (example) attribute in the ACL call my question is if it is possible to use ACL ca ...
I defined a voter, especially voteOnAttribute method like following : Why can't I use VoterInterface constants (ACCESS_GRANTED, ACCESS_ABSTAIN, ACC ...
On an show user action, i want to check if the logged user has the right to see this user. So i created a UserVoter. But when I try to pass the user d ...
Sometime i need to check if an user can comment from a voter, obviously at this point of the code the comment does not yet exist, but still i need to ...
The Voter seems to work on my whole app... except on this controller: Where this Voter method is receiving wrong arguments .... supports($attribut ...
I'm developing a new symfony project and I implemented and custom voter. In a controller I can call the voters through $this->isGranted('view',$tea ...
I am using Voters to restrict access to entities in a REST API. Step 1 Consider this voter that restricts users access to blog posts: You can se ...