fix delete workflow

This commit is contained in:
2022-02-23 17:52:43 +01:00
parent ffe4dd4a98
commit b56d8c2956
5 changed files with 28 additions and 10 deletions

View File

@@ -23,10 +23,10 @@ class EntityWorkflowVoter extends Voter
{
public const CREATE = 'CHILL_MAIN_WORKFLOW_CREATE';
public const SEE = 'CHILL_MAIN_WORKFLOW_SEE';
public const DELETE = 'CHILL_MAIN_WORKFLOW_DELETE';
public const SEE = 'CHILL_MAIN_WORKFLOW_SEE';
private EntityWorkflowManager $manager;
private Security $security;
@@ -44,6 +44,7 @@ class EntityWorkflowVoter extends Voter
/**
* @param EntityWorkflow $subject
* @param mixed $attribute
*/
protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool
{