mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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
30078db841
commit
26b3d84d62
@ -60,7 +60,7 @@ class StoredObjectVoter extends Voter
|
|||||||
}
|
}
|
||||||
|
|
||||||
// User role-based fallback
|
// User role-based fallback
|
||||||
if ($this->security->isGranted('ROLE_USER')) {
|
if ($this->security->isGranted('ROLE_USER') || $this->security->isGranted('ROLE_ADMIN')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user