WIP: Implement admin dashboard

This commit is contained in:
Björn Fromme
2023-10-22 17:05:43 +02:00
parent 38d6fafcb2
commit 91f0f76ccc
15 changed files with 280 additions and 4 deletions
+1 -1
View File
@@ -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;