WIP: Implement admin dashboard
This commit is contained in:
@@ -32,7 +32,7 @@ class UploadVoter extends Voter
|
||||
if (true === in_array('ROLE_ADMINISTRATIVE', $token->getRoleNames())) {
|
||||
// Only new documents may be checked
|
||||
if (static::CHECK === $attribute) {
|
||||
return Upload::STATUS_NEW === $upload->getStatus();
|
||||
return in_array($upload->getStatus(), [Upload::STATUS_NEW, Upload::STATUS_PENDING]);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user