From 1d15df53446415fb1502f9fcd750bd89314d6b9a Mon Sep 17 00:00:00 2001 From: AkisYTB3 Date: Wed, 24 Jan 2024 15:15:32 +0100 Subject: [PATCH] changed isAdmin check to actually check if user is admin... --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 05e4305..6f12925 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,7 @@ $paths_to_check = array(); $page = basename($_SERVER['QUERY_STRING']); if (isset($_SESSION['user_id'])) { - if(isset($_SESSION['user_isAdmin'])) { + if($_SESSION['user_isAdmin'] == 1) { $nav = include_ob("$template_dir/admin_nav.html"); } else {