From 6719ef1b3dc670c8739ec18b46326204727aaaf9 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 19 Nov 2017 01:05:48 -0700 Subject: [PATCH] Add basic permission check to exporter --- pages/export.php | 90 ++++++++++++++++++++++++++---------------------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/pages/export.php b/pages/export.php index 744bc78..88c4665 100644 --- a/pages/export.php +++ b/pages/export.php @@ -2,47 +2,55 @@ require_once __DIR__ . '/../required.php'; redirectifnotloggedin(); -?> -
-
-
- - -
-
- -
- -
-
- -
-
-
- - -
-
-
- insert('report_access_codes', ['code' => $code, 'expires' => date("Y-m-d H:i:s", strtotime("+5 minutes"))]); +if (!account_has_permission($_SESSION['username'], "QWIKCLOCK_MANAGE")) { ?> - +
+ + +
+
+ + +
+
+ +
+ +
+
+ +
+
+
+ + +
+
+
+ insert('report_access_codes', ['code' => $code, 'expires' => date("Y-m-d H:i:s", strtotime("+5 minutes"))]); + ?> + - -
\ No newline at end of file + + + \ No newline at end of file