Allow project managers to remove tasks

This commit is contained in:
Frédéric Guillot
2015-01-02 22:14:28 -05:00
parent 0ebdd4ddfd
commit 5c6b67bd76
7 changed files with 6 additions and 11 deletions

View File

@@ -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>