mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
Fix condition for checking if the user is allowed to edit a document attached to a workflow
This commit is contained in:
@@ -28,8 +28,8 @@ class WorkflowStoredObjectPermissionHelper
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
if (!$workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user