From a7b28a6c4d622ee4b656af2692290305fefe5d5c Mon Sep 17 00:00:00 2001 From: Alexander Jason <alexanderjason526@gmail.com> Date: Mon, 9 Oct 2023 21:28:37 +0700 Subject: [PATCH] fix: navbar --- app/components/Navbar.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/app/components/Navbar.php b/app/components/Navbar.php index 668408d..354887d 100644 --- a/app/components/Navbar.php +++ b/app/components/Navbar.php @@ -17,18 +17,11 @@ </a> </li> <?php if(isset($_SESSION['username'])):?> - <?php if($_SESSION["role"]=='customer'):?> - <li> - <a class="book-list" href="#"> - <img src="<?= BASE_URL ?>/icon/dashboard.svg" alt="Dashboard Icon"> - Dashboard - </a> - </li> - <?php elseif($_SESSION["role"]=='admin') :?> + <?php if($_SESSION["role"]=='admin') :?> <li> <a class="customer" href="/user/update"> <img src="<?= BASE_URL ?>/icon/dashboard.svg" alt="Customer Icon"> - Customers + Users </a> </li> <li> -- GitLab