diff options
Diffstat (limited to 'app/Template/task/sidebar.php')
-rw-r--r-- | app/Template/task/sidebar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index 4ee7ca8a..acddd52f 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -35,7 +35,7 @@ <?= $this->a(t('Open this task'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> <?php endif ?> </li> - <?php if (! $hide_remove_menu): ?> + <?php if ($this->taskPermission->canRemoveTask($task)): ?> <li> <?= $this->a(t('Remove'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </li> |