@@ -38,7 +38,7 @@ if(empty($page)){
// Check if user is logged in
if (isset($_SESSION['user_id'])) {
if ($user['isAdmin'] == 1) {
if ($_SESSION['user_isAdmin'] == 1) {
$paths_to_check[] = "pages/admin";
}
The note is not visible to the blocked user.