summaryrefslogtreecommitdiff
path: root/app/Templates/comment_show.php
diff options
context:
space:
mode:
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>