diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-08-11 22:50:01 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-08-11 22:50:01 +0200 |
commit | 49f76cd53bea8f42992b447cb19117a55479e08e (patch) | |
tree | 61e0c1fc89d523daffae0782f5fecdb5ac3c9587 /web/html/pkgreq.php | |
parent | 4d7da95906f66a10368f8689b6686199753268b9 (diff) | |
parent | 218ccf51e38ad9b0654aa509f2bf8eec44d69c07 (diff) | |
download | aurweb-49f76cd53bea8f42992b447cb19117a55479e08e.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'web/html/pkgreq.php')
-rw-r--r-- | web/html/pkgreq.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php index 03b31b8..ccb0acd 100644 --- a/web/html/pkgreq.php +++ b/web/html/pkgreq.php @@ -9,9 +9,17 @@ set_lang(); check_sid(); if (isset($base_id)) { + if (!has_credential(CRED_PKGREQ_FILE)) { + header('Location: /'); + exit(); + } html_header(__("File Request")); include('pkgreq_form.php'); } elseif (isset($pkgreq_id)) { + if (!has_credential(CRED_PKGREQ_CLOSE)) { + header('Location: /'); + exit(); + } html_header(__("Close Request")); $pkgbase_name = pkgreq_get_pkgbase_name($pkgreq_id); include('pkgreq_close_form.php'); |