summaryrefslogtreecommitdiff
path: root/app/Model/TaskPermission.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/TaskPermission.php')
-rw-r--r--app/Model/TaskPermission.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/TaskPermission.php b/app/Model/TaskPermission.php
index 2ab154f4..53740a9a 100644
--- a/app/Model/TaskPermission.php
+++ b/app/Model/TaskPermission.php
@@ -20,10 +20,10 @@ class TaskPermission extends Base
*/
public function canRemoveTask(array $task)
{
- if ($this->acl->isAdminUser()) {
+ if ($this->userSession->isAdmin()) {
return true;
}
- else if (isset($task['creator_id']) && $task['creator_id'] == $this->acl->getUserId()) {
+ else if (isset($task['creator_id']) && $task['creator_id'] == $this->userSession->getId()) {
return true;
}