Skip to content

Commit

Permalink
Remove obsolete subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Feb 3, 2023
1 parent f05a2cc commit 07ab85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Infrastructure/SecurityVoter/UserVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function voteOnAttribute($attribute, $subject, TokenInterface $token):
$moduleAdminRoles = $this->parameterBag->get('rich_id_terms_module.admin_roles');

foreach ($moduleAdminRoles as $adminRole) {
if ($this->authorizationChecker->isGranted($adminRole, $user)) {
if ($this->authorizationChecker->isGranted($adminRole)) {
return true;
}
}
Expand Down

0 comments on commit 07ab85b

Please sign in to comment.