diff options
author | Frédéric Guillot <fred@kanboard.net> | 2015-01-02 22:14:28 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2015-01-02 22:14:28 -0500 |
commit | 5c6b67bd7605485db2b19a8838838b7c4455e3b6 (patch) | |
tree | 69594e840844bf59cab7cedd83a8a833234690de /app/Model/TaskPermission.php | |
parent | 0ebdd4ddfd898628cc30e34e55e97f88e5e30a71 (diff) |
Allow project managers to remove tasks
Diffstat (limited to 'app/Model/TaskPermission.php')
-rw-r--r-- | app/Model/TaskPermission.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/TaskPermission.php b/app/Model/TaskPermission.php index 53740a9a..e2420e10 100644 --- a/app/Model/TaskPermission.php +++ b/app/Model/TaskPermission.php @@ -20,7 +20,7 @@ class TaskPermission extends Base */ public function canRemoveTask(array $task) { - if ($this->userSession->isAdmin()) { + if ($this->userSession->isAdmin() || $this->projectPermission->isManager($task['project_id'], $this->userSession->getId())) { return true; } else if (isset($task['creator_id']) && $task['creator_id'] == $this->userSession->getId()) { |