summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-06-25 21:31:18 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-06-25 21:31:18 +0200
commit409d1c3ffde5c80d259ad38618c2b99db5eacd9f (patch)
treef5d2f8fe37abda0b87c95b08ae1a88691501e762
parent65129ce9c3e951d10d8558d68e7b831db2726515 (diff)
downloadaurweb-409d1c3ffde5c80d259ad38618c2b99db5eacd9f.tar.xz
Allow regular users to file package requests
Move the permission check so that regular users can file requests, whereas the request list is only available to Trusted Users and developers. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/pkgreq.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php
index 2b46b02..d7a4354 100644
--- a/web/html/pkgreq.php
+++ b/web/html/pkgreq.php
@@ -10,12 +10,12 @@ check_sid();
html_header(__("File Request"));
-if (!check_user_privileges()) {
- header('Location: /');
- exit();
-}
-
if (!isset($base_id)) {
+ if (!check_user_privileges()) {
+ header('Location: /');
+ exit();
+ }
+
$results = pkgbase_request_list();
$total = count($results);