From daceef50ebb33a477795a0d790f17fc8770dc45d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 25 Jul 2014 10:12:31 +0200 Subject: Make deleted comments visible to Trusted Users This allows Trusted Users to check whether a user posted a politically incorrect comment, even if he already deleted it. Signed-off-by: Lukas Fleischer --- web/template/pkg_comments.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 9961554e..3e99d9b3 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -6,7 +6,8 @@ if (isset($row['BaseID'])) { /* On a package base details page. */ $base_id = $row['ID']; } -$count = pkgbase_comments_count($base_id); +$include_deleted = has_credential(CRED_COMMENT_VIEW_DELETED); +$count = pkgbase_comments_count($base_id, $include_deleted); ?>

@@ -18,8 +19,8 @@ $count = pkgbase_comments_count($base_id); {$row['UserName']}"; endif; ?> -

- + class="comment-deleted"> +
@@ -39,10 +40,13 @@ $count = pkgbase_comments_count($base_id); + + () +

-
+

-- cgit v1.2.3-24-g4f1b