Category: security

Symfony 5 : @IsGranted on method annotation doesn’t work on inherited role

I (obviously) searched for similar problems, but mine ain’t none of them. Here’s my case : I made a custom role : ROLE_SUPER_ADMIN My actual user is admin, his only role is ROLE_SUPER_ADMIN The role ROLE_SUPER_ADMIN inherits the ROLE_ADMIN (see…