From 435836c7d1ba38b853c151efe87f4f4b554d5514 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 4 Jul 2024 15:46:18 +0200 Subject: [PATCH] Delete unused storedobject voter --- .../AccompanyingCourseStoredObjectVoter.php | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/AccompanyingCourseStoredObjectVoter.php diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/AccompanyingCourseStoredObjectVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/AccompanyingCourseStoredObjectVoter.php deleted file mode 100644 index 040f4dc32..000000000 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/AccompanyingCourseStoredObjectVoter.php +++ /dev/null @@ -1,55 +0,0 @@ -repository; - } - - protected function attributeToRole(StoredObjectRoleEnum $attribute): string - { - return match ($attribute) { - StoredObjectRoleEnum::EDIT => AccompanyingCourseDocumentVoter::UPDATE, - StoredObjectRoleEnum::SEE => AccompanyingCourseDocumentVoter::SEE_DETAILS, - }; - } - - protected function getClass(): string - { - return AccompanyingCourseDocument::class; - } - - protected function canBeAssociatedWithWorkflow(): bool - { - return true; - } -}