diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-05-04 21:51:38 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-05-04 21:51:38 -0400 |
| commit | 6bdc25490f02649242b1d96025f8da1f4c41884b (patch) | |
| tree | ab30b54786c0c08f85facb6d0703f7837b4bc471 /app/Controller/Task.php | |
| parent | 60c8867feeeefcf160fb1432419887f17a0d957b (diff) | |
Unify task drop-down menu between different views
Diffstat (limited to 'app/Controller/Task.php')
| -rw-r--r-- | app/Controller/Task.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 902a32d6..072df87b 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -151,7 +151,7 @@ class Task extends Base { $task = $this->getTask(); - if (! $this->taskPermission->canRemoveTask($task)) { + if (! $this->helper->user->canRemoveTask($task)) { $this->forbidden(); } @@ -164,7 +164,7 @@ class Task extends Base $this->flash->failure(t('Unable to remove this task.')); } - $this->response->redirect($this->helper->url->to('board', 'show', array('project_id' => $task['project_id']))); + $this->response->redirect($this->helper->url->to('board', 'show', array('project_id' => $task['project_id'])), true); } $this->response->html($this->template->render('task/remove', array( |
