diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/ActivityStoredObjectVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/ActivityStoredObjectVoter.php deleted file mode 100644 index 4f897b36c..000000000 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/ActivityStoredObjectVoter.php +++ /dev/null @@ -1,55 +0,0 @@ -repository; - } - - protected function getClass(): string - { - return Activity::class; - } - - protected function attributeToRole(StoredObjectRoleEnum $attribute): string - { - return match ($attribute) { - StoredObjectRoleEnum::EDIT => ActivityVoter::UPDATE, - StoredObjectRoleEnum::SEE => ActivityVoter::SEE_DETAILS, - }; - } - - protected function canBeAssociatedWithWorkflow(): bool - { - return false; - } -} diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/EventStoredObjectVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/EventStoredObjectVoter.php deleted file mode 100644 index d258b3ae3..000000000 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/EventStoredObjectVoter.php +++ /dev/null @@ -1,55 +0,0 @@ -repository; - } - - protected function getClass(): string - { - return Event::class; - } - - protected function attributeToRole(StoredObjectRoleEnum $attribute): string - { - return match ($attribute) { - StoredObjectRoleEnum::EDIT => EventVoter::UPDATE, - StoredObjectRoleEnum::SEE => EventVoter::SEE_DETAILS, - }; - } - - protected function canBeAssociatedWithWorkflow(): bool - { - return false; - } -} diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/PersonStoredObjectVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/PersonStoredObjectVoter.php deleted file mode 100644 index 4d8a1220f..000000000 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoters/PersonStoredObjectVoter.php +++ /dev/null @@ -1,55 +0,0 @@ -repository; - } - - protected function getClass(): string - { - return PersonDocument::class; - } - - protected function attributeToRole(StoredObjectRoleEnum $attribute): string - { - return match ($attribute) { - StoredObjectRoleEnum::EDIT => PersonDocumentVoter::UPDATE, - StoredObjectRoleEnum::SEE => PersonDocumentVoter::SEE_DETAILS, - }; - } - - protected function canBeAssociatedWithWorkflow(): bool - { - return true; - } -}