mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
if (!$workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user