Skip to content

Commit

Permalink
Merge pull request #16 from 2lenet/fix_publicaccess
Browse files Browse the repository at this point in the history
fix: ignore PUBLIC_ACCESS in voter
  • Loading branch information
sebheitzmann authored Sep 21, 2023
2 parents c02b511 + 68edbae commit 1119d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Security/CredentialVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected function supports(?string $attribute, mixed $subject): bool
'IS_AUTHENTICATED_ANONYMOUS',
'IS_AUTHENTICATED_FULLY',
'ROLE_SUPER_ADMIN',
'PUBLIC_ACCESS',
]
)) {
if (!in_array($attribute, $this->roles)) { // insert on check
Expand Down

0 comments on commit 1119d91

Please sign in to comment.