diff --git a/api.php b/api.php index 77d63e6..b16a7f2 100644 --- a/api.php +++ b/api.php @@ -14,7 +14,7 @@ header("Content-Type: application/json"); $username = $VARS['username']; $password = $VARS['password']; -if (user_exists($username) !== true || authenticate_user($username, $password, $errmsg) !== true) { +if (user_exists($username) !== true || authenticate_user($username, $password, $errmsg) !== true || account_has_permission($username, "QWIKCLOCK") !== true) { header("HTTP/1.1 403 Unauthorized"); die("\"403 Unauthorized\""); } diff --git a/app.php b/app.php index 00aa34c..4d6ba5d 100644 --- a/app.php +++ b/app.php @@ -53,7 +53,7 @@ if (!is_empty($_GET['page'])) { ?> -