changed isAdmin check to actually check if user is admin...
This commit is contained in:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user