summaryrefslogtreecommitdiff
path: root/app/Action/TaskAssignCurrentUser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Action/TaskAssignCurrentUser.php')
-rw-r--r--app/Action/TaskAssignCurrentUser.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Action/TaskAssignCurrentUser.php b/app/Action/TaskAssignCurrentUser.php
index 7a9cf70b..ff3aaee1 100644
--- a/app/Action/TaskAssignCurrentUser.php
+++ b/app/Action/TaskAssignCurrentUser.php
@@ -62,12 +62,16 @@ class TaskAssignCurrentUser extends Base
*/
public function doAction(array $data)
{
+ if (! $this->userSession->isLogged()) {
+ return false;
+ }
+
$values = array(
'id' => $data['task_id'],
- 'owner_id' => $this->acl->getUserId(),
+ 'owner_id' => $this->userSession->getId(),
);
- return $this->task->update($values, false);
+ return $this->taskModification->update($values);
}
/**