From 6ee0046a35d078e68f557fe7ba06fad3ca4d0e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 3 Feb 2025 14:18:56 +0100 Subject: [PATCH] fix: relax uploads voter for admins --- src/Security/Voter/UploadVoter.php | 5 ----- 1 file changed, 5 deletions(-) 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; }