From 11a35b326d842949d83c4e36da5edb30ea164710 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Mon, 21 Aug 2023 19:25:57 +0800 Subject: [PATCH] Header.php: do not show 'My courses' for Admin. --- Header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Header.php b/Header.php index bf1a0a9..1ad62da 100644 --- a/Header.php +++ b/Header.php @@ -152,7 +152,9 @@ if (mysqli_connect_errno()) { My courses "; + if ($_SESSION['user_type'] == "Student" || $_SESSION['user_type'] == 'Lecturer') { + echo " My courses "; + } ?>