diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-10-03 13:08:32 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-10-03 13:17:38 +0200 |
commit | 76872d8b080c5924dac2f65760ee6190a7a368b1 (patch) | |
tree | 60477f905b8813a11ed30939ca755ef9c021f28c /web/lib/pkgreqfuncs.inc.php | |
parent | 1b22f8046f0f948ffa7bd505e602580983d88f01 (diff) | |
download | aur-76872d8b080c5924dac2f65760ee6190a7a368b1.tar.gz aur-76872d8b080c5924dac2f65760ee6190a7a368b1.tar.xz |
Fix permission check in pkgreq_close()
Make sure that requests can be auto-accepted if filed by a regular user.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgreqfuncs.inc.php')
-rw-r--r-- | web/lib/pkgreqfuncs.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php index 92070434..b2a70894 100644 --- a/web/lib/pkgreqfuncs.inc.php +++ b/web/lib/pkgreqfuncs.inc.php @@ -241,7 +241,7 @@ function pkgreq_close($id, $reason, $comments, $auto_close=false) { $dbh = DB::connect(); $id = intval($id); - if (!has_credential(CRED_PKGREQ_CLOSE)) { + if (!$auto_close && !has_credential(CRED_PKGREQ_CLOSE)) { return array(false, __("Only TUs and developers can close requests.")); } |