Header.php: do not show 'My courses' for Admin.

Bug430-Eden2
Lan Hui 2023-08-21 19:25:57 +08:00
parent eef84ab25f
commit 11a35b326d
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ if (mysqli_connect_errno()) {
<?php
if (isset($_SESSION["user_fullname"])) {
if ($_SESSION['user_type'] == "Student" || $_SESSION['user_type'] == 'Lecturer') {
echo "<a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> My courses </a>";
}
?>