Add project restriction for opening/closing tasks

This commit is contained in:
Frederic Guillot
2016-09-17 20:36:18 -04:00
parent 0e055eabe1
commit 4bc83646b0
3 changed files with 25 additions and 17 deletions

View File

@@ -49,7 +49,7 @@
<?= $this->url->link(t('Remove'), 'TaskSuppressionController', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?>
</li>
<?php endif ?>
<?php if (isset($task['is_active'])): ?>
<?php if (isset($task['is_active']) && $this->user->hasProjectAccess('TaskStatusController', 'close', $task['project_id'])): ?>
<li>
<?php if ($task['is_active'] == 1): ?>
<i class="fa fa-times fa-fw"></i>