changed isAdmin check to actually check if user is admin...

This commit is contained in:
Richard Mikloš 2024-01-24 15:15:32 +01:00
parent ae47c6c238
commit 1d15df5344

@ -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 {