Admin.php: fix logic error
parent
ce4a9b76c7
commit
12520a603f
|
@ -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.");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue