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> --- 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