Commit 6f52fe1c by Yvon

silly bug fix

parent a6401cfe
......@@ -76,6 +76,6 @@ class VoterSecurityHandler extends RoleSecurityHandler
public function grantChangeAdherentPasswordToNonSuperAdmin($str): bool
{
return $_ENV['TAV_ENV'] && ($str === 'ROLE_CHANGE_ADHERENT_PERSONAL_DATA');
return $_ENV['TAV_ENV'] && $this->authorizationChecker->isGranted($str);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment