mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix condition for checking if the user is allowed to edit a document attached to a workflow
This commit is contained in:
parent
d5e4991982
commit
d689ce9aef
@ -28,8 +28,8 @@ class WorkflowStoredObjectPermissionHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
||||
return true;
|
||||
if (!$workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user