mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-19 04:19:32 +00:00
Take workflow creator into account when granting edit permissions on documents
This commit is contained in:
@@ -394,6 +394,10 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
public function isUserInvolved(User $user): bool
|
||||
{
|
||||
if ($this->getCreatedBy() === $user) {
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach ($this->getSteps() as $step) {
|
||||
if ($step->getAllDestUser()->contains($user)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user