mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
65129ce9c3
commit
409d1c3ffd
1 changed files with 5 additions and 5 deletions
|
@ -10,12 +10,12 @@ check_sid();
|
||||||
|
|
||||||
html_header(__("File Request"));
|
html_header(__("File Request"));
|
||||||
|
|
||||||
if (!check_user_privileges()) {
|
|
||||||
header('Location: /');
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($base_id)) {
|
if (!isset($base_id)) {
|
||||||
|
if (!check_user_privileges()) {
|
||||||
|
header('Location: /');
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
$results = pkgbase_request_list();
|
$results = pkgbase_request_list();
|
||||||
$total = count($results);
|
$total = count($results);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue