mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
period: fix method hasPreviousUser and create method isChangedUser, and use it in Notification
This commit is contained in:
@@ -58,7 +58,7 @@ class UserRefEventSubscriber implements EventSubscriberInterface
|
||||
|
||||
public function postUpdate(AccompanyingPeriod $period, LifecycleEventArgs $args): void
|
||||
{
|
||||
if ($period->hasPreviousUser()
|
||||
if ($period->isChangedUser()
|
||||
&& $period->getUser() !== $this->security->getUser()
|
||||
&& null !== $period->getUser()
|
||||
&& $period->getStep() !== AccompanyingPeriod::STEP_DRAFT
|
||||
|
Reference in New Issue
Block a user