diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-23 15:17:04 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-23 15:17:04 +0200 |
commit | 484c9614d1ed325448bf3a6e97e00a9f4448dc93 (patch) | |
tree | 99848dbe2e088b67152c3def675a9253c1b5ce8a /app/Templates/task_sidebar.php | |
parent | 0bd0beba411991844d5a9b44b1b51a6eb903dff7 (diff) |
Regular users can remove only their own tasks
Diffstat (limited to 'app/Templates/task_sidebar.php')
-rw-r--r-- | app/Templates/task_sidebar.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Templates/task_sidebar.php b/app/Templates/task_sidebar.php index 4d363fec..4cffd5fa 100644 --- a/app/Templates/task_sidebar.php +++ b/app/Templates/task_sidebar.php @@ -18,7 +18,9 @@ <a href="?controller=task&action=open&task_id=<?= $task['id'] ?>"><?= t('Open this task') ?></a> <?php endif ?> </li> - <li><a href="?controller=task&action=remove&task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li> + <?php if (! $hide_remove_menu): ?> + <li><a href="?controller=task&action=remove&task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li> + <?php endif ?> </ul> </div> </div>
\ No newline at end of file |