Category: roles

Symfony: "Array to string conversion" error on Roles management

I’ve started exploring security on Symfony 4.4.7. User creation works and I can see its params saved on DB: MariaDB [(symfony)]> desc user; +———-+————–+——+—–+———+—————-+ | Field | Type | Null | Key | Default | Extra | +———-+————–+——+—–+———+—————-+ | id…

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…