diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
commit | 772804add8095eea9b3ec2a832c2f82fbb9a6fd5 (patch) | |
tree | 782a414d15f9091d04bcf3960a957f952958e548 /app/Subscriber/ProjectActivitySubscriber.php | |
parent | 66f150d887a34d2b51ff14f22d0fd41a34f8cc77 (diff) |
Acl refactoring
Diffstat (limited to 'app/Subscriber/ProjectActivitySubscriber.php')
-rw-r--r-- | app/Subscriber/ProjectActivitySubscriber.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Subscriber/ProjectActivitySubscriber.php b/app/Subscriber/ProjectActivitySubscriber.php index 1aca8539..3daf2f4d 100644 --- a/app/Subscriber/ProjectActivitySubscriber.php +++ b/app/Subscriber/ProjectActivitySubscriber.php @@ -30,14 +30,14 @@ class ProjectActivitySubscriber extends Base implements EventSubscriberInterface public function execute(GenericEvent $event) { // Executed only when someone is logged - if ($this->container['acl']->isLogged() && isset($event['task_id'])) { + if ($this->userSession->isLogged() && isset($event['task_id'])) { $values = $this->getValues($event); $this->projectActivity->createEvent( $values['task']['project_id'], $values['task']['id'], - $this->acl->getUserId(), + $this->userSession->getId(), $event->getName(), $values ); |