mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
parent
4b82e67952
commit
ad4fe80240
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user