/**
* @IsGranted(SuppliersUsers::GROUP_PERMISSION_PARTNER)
*
* @Route("/fbp/inventory", name="fbp_inventory")
*/
When user permission is ‘editor’, it gives access to this controller but it should not. It should give access when permission is ‘partner’ but it does not. Why?
It is symfony 5.
Tried reading https://symfony.com/bundles/SensioFrameworkExtraBundle/current/annotations/security.html
https://symfony.com/doc/5.x/security/voters.html
Tried asking gemini but I did not get any good anwser.
Tried using xdebug:
From the xdebug I cannot quickly find an answer, really there I expect is quicker way. It seem such a simple statement that xdebug should not be needed.
Tried asking in symfony slack security channel. But nobody answers.
I am expecting to understand how does it work.