From 409d1c3ffde5c80d259ad38618c2b99db5eacd9f Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 25 Jun 2014 21:31:18 +0200 Subject: 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 --- web/html/pkgreq.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'web') 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); -- cgit v1.2.3-70-g09d2