Add User Type to session, along with user type check

This commit is contained in:
johnnyq
2024-11-27 11:50:45 -05:00
parent 8eb32a09b2
commit 53c888c4b8
5 changed files with 14 additions and 0 deletions

View File

@@ -27,6 +27,11 @@ if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {
exit;
}
// Check user type
if ($_SESSION['user_type'] !== 1) {
header("Location: login.php");
exit();
}
// Set Timezone
require_once "inc_set_timezone.php";