summaryrefslogtreecommitdiff
path: root/app/Template/task
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task')
-rw-r--r--app/Template/task/layout.php2
-rw-r--r--app/Template/task/sidebar.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php
index 776fdc78..dd36903d 100644
--- a/app/Template/task/layout.php
+++ b/app/Template/task/layout.php
@@ -6,7 +6,7 @@
</div>
<section class="sidebar-container" id="task-section">
- <?= $this->render('task/sidebar', array('task' => $task, 'hide_remove_menu' => isset($hide_remove_menu))) ?>
+ <?= $this->render('task/sidebar', array('task' => $task)) ?>
<div class="sidebar-content">
<?= $task_content_for_layout ?>
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>