Add fall-back right for ROLE_ADMIN

Within the StoredObjectVoter.php also the admin\
user should be able to edit documents as a fall-back
This commit is contained in:
Julie Lenaerts 2024-06-19 09:52:59 +02:00
parent 4b82e67952
commit ad4fe80240

View File

@ -60,7 +60,7 @@ class StoredObjectVoter extends Voter
}
// User role-based fallback
if ($this->security->isGranted('ROLE_USER')) {
if ($this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN')) {
return true;
}