diff --git a/src/Security/Voter/UploadVoter.php b/src/Security/Voter/UploadVoter.php index 7bee1fa..4d2be2c 100644 --- a/src/Security/Voter/UploadVoter.php +++ b/src/Security/Voter/UploadVoter.php @@ -35,11 +35,6 @@ class UploadVoter extends Voter // Administrative users have full access 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; }