diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-25 10:12:31 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-25 11:30:32 +0200 |
commit | daceef50ebb33a477795a0d790f17fc8770dc45d (patch) | |
tree | f3fc88d45881d8553db7d10594eae286c9a8ff7b /web/lib/pkgfuncs.inc.php | |
parent | 16e4708f1e85ee657a3de3e8ad9831e714344004 (diff) | |
download | aur-daceef50ebb33a477795a0d790f17fc8770dc45d.tar.gz aur-daceef50ebb33a477795a0d790f17fc8770dc45d.tar.xz |
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r-- | web/lib/pkgfuncs.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 8c2a67de..69b1c94c 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -436,7 +436,8 @@ function pkg_display_details($id=0, $row, $SID="") { } $limit = isset($_GET['comments']) ? 0 : 10; - $comments = pkgbase_comments($base_id, $limit); + $include_deleted = has_credential(CRED_COMMENT_VIEW_DELETED); + $comments = pkgbase_comments($base_id, $limit, $include_deleted); if (!empty($comments)) { include('pkg_comments.php'); } |