Fix condition for checking if the user is allowed to edit a document attached to a workflow

This commit is contained in:
Julien Fastré 2024-07-15 19:14:17 +02:00
parent d5e4991982
commit d689ce9aef
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -28,8 +28,8 @@ class WorkflowStoredObjectPermissionHelper
return false;
}
if ($workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
return true;
if (!$workflow->getCurrentStep()->getAllDestUser()->contains($currentUser)) {
return false;
}
}