Commit 76872d8b authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Fix permission check in pkgreq_close()



Make sure that requests can be auto-accepted if filed by a regular user.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 1b22f804
......@@ -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."));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment