[aur-dev] [PATCH 1/6] Allow regular users to file package requests
Lukas Fleischer
archlinux at cryptocrack.de
Wed Jun 25 15:58:56 EDT 2014
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 at cryptocrack.de>
---
web/html/pkgreq.php | 10 +++++-----
1 file 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);
--
2.0.0
More information about the aur-dev
mailing list