Admin.php: fix logic error

pull/49/head
Hui Lan 2022-12-01 20:41:18 +08:00
parent ce4a9b76c7
commit 12520a603f
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include 'Header.php';
<?php <?php
// Only Lecturer or Admin could access this page // Only Lecturer or Admin could access this page
if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") { if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") {
die("Sorry. Nothing to see here."); die("Sorry. Nothing to see here.");
} }
?> ?>