fix: relax uploads voter for admins
This commit is contained in:
1 parent
7c2a3cdf4f
commit
6ee0046a35
1 file changed
-5
@@ -35,11 +35,6 @@ class UploadVoter extends Voter
|
|||||||
|
|
||||||
// Administrative users have full access
|
// Administrative users have full access
|
||||||
if (true === $this->security->isGranted('ROLE_ADMINISTRATIVE')) {
|
if (true === $this->security->isGranted('ROLE_ADMINISTRATIVE')) {
|
||||||
// Only new documents may be checked
|
|
||||||
if (static::CHECK === $attribute) {
|
|
||||||
return in_array($upload->getStatus(), [Upload::STATUS_NEW, Upload::STATUS_PENDING]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user