summaryrefslogtreecommitdiff
path: root/app/Template/task/dropdown.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-17 20:36:18 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-17 20:36:18 -0400
commit4bc83646b0b15bff9ae55083121f66b7a89e433d (patch)
tree941a2710bc3e1926a5e8cdbdeaaa797612dfb819 /app/Template/task/dropdown.php
parent0e055eabe1a7d0e077105f6e9cc48057c9540443 (diff)
Add project restriction for opening/closing tasks
Diffstat (limited to 'app/Template/task/dropdown.php')
-rw-r--r--app/Template/task/dropdown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/task/dropdown.php b/app/Template/task/dropdown.php
index 19c8316e..127fc89c 100644
--- a/app/Template/task/dropdown.php
+++ b/app/Template/task/dropdown.php
@@ -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>