summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-10-03 13:08:32 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-10-03 13:17:38 +0200
commit76872d8b080c5924dac2f65760ee6190a7a368b1 (patch)
tree60477f905b8813a11ed30939ca755ef9c021f28c /web/lib
parent1b22f8046f0f948ffa7bd505e602580983d88f01 (diff)
downloadaur-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')
-rw-r--r--web/lib/pkgreqfuncs.inc.php2
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."));
}