Take workflow creator into account when granting edit permissions on documents

This commit is contained in:
2026-02-10 15:05:49 +00:00
committed by Boris Waaub
parent d4a625f6b5
commit f23b8384d2
2 changed files with 10 additions and 0 deletions

View File

@@ -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;