summaryrefslogtreecommitdiff
path: root/app/Template/task/sidebar.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-04 21:51:38 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-04 21:51:38 -0400
commit6bdc25490f02649242b1d96025f8da1f4c41884b (patch)
treeab30b54786c0c08f85facb6d0703f7837b4bc471 /app/Template/task/sidebar.php
parent60c8867feeeefcf160fb1432419887f17a0d957b (diff)
Unify task drop-down menu between different views
Diffstat (limited to 'app/Template/task/sidebar.php')
-rw-r--r--app/Template/task/sidebar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php
index a2d73b8c..46f9e1a2 100644
--- a/app/Template/task/sidebar.php
+++ b/app/Template/task/sidebar.php
@@ -87,7 +87,7 @@
<?= $this->url->link(t('Open this task'), 'taskstatus', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
<?php endif ?>
</li>
- <?php if ($this->task->canRemove($task)): ?>
+ <?php if ($this->user->canRemoveTask($task)): ?>
<li>
<i class="fa fa-trash-o fa-fw"></i>
<?= $this->url->link(t('Remove'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>