summaryrefslogtreecommitdiff
path: root/app/Templates/comment_show.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-08 23:19:40 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-08 23:19:40 +0200
commite383c069f1aeba49ea9905f77a51bf663e614b0e (patch)
tree8164aa9e1fad104997e53c6e261bec991631dbbb /app/Templates/comment_show.php
parent8c6df9ef0cea757d25cbbcc6fa7cee86d8739627 (diff)
Add public view for tasks
Diffstat (limited to 'app/Templates/comment_show.php')
-rw-r--r--app/Templates/comment_show.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Templates/comment_show.php b/app/Templates/comment_show.php
index 08d77b29..181a69fa 100644
--- a/app/Templates/comment_show.php
+++ b/app/Templates/comment_show.php
@@ -9,7 +9,7 @@
<?php if (! isset($preview)): ?>
<ul class="comment-actions">
<li><a href="#comment-<?= $comment['id'] ?>"><?= t('link') ?></a></li>
- <?php if (Helper\is_admin() || Helper\is_current_user($comment['user_id'])): ?>
+ <?php if ((! isset($not_editable) || ! $not_editable) && (Helper\is_admin() || Helper\is_current_user($comment['user_id']))): ?>
<li>
<a href="?controller=comment&amp;action=confirm&amp;task_id=<?= $task['id'] ?>&amp;comment_id=<?= $comment['id'] ?>"><?= t('remove') ?></a>
</li>