I noticed that my voters are solicited even for SuperAdmin users.
Is it working as expected ?
If yes, I thought that the philosophy of SuperAdmin is that they systematically have all rights, so that we don't have to give them each permission one by one. In that case why not granting access to all voters ?
Do I always have to put
if ($user->isSuperAdmin()) {
return VoterInterface::ACCESS_GRANTED;
}
in my voters ?
isSuperAdmin()
check already implemented. – KeilisSuperAdmin()
check is provided by the FOSUserBundle, in which this role is "hardcoded". – Veljkov