mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
16e4708f1e
commit
daceef50eb
5 changed files with 30 additions and 11 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue