From 442147391c8b9ff27c62932af991c619fe53869e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 10 May 2023 22:11:01 -0600 Subject: [PATCH] Change the and to an or and add an isset --- resources/check_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/check_auth.php b/resources/check_auth.php index 124df95ceb..5333268478 100644 --- a/resources/check_auth.php +++ b/resources/check_auth.php @@ -43,7 +43,7 @@ if (!isset($_SESSION['template_content'])) { $_SESSION["template_content"] = null; } //if the session is not authorized then verify the identity - if (!isset($_SESSION['authorized']) && !$_SESSION['authorized']) { + if (!isset($_SESSION['authorized']) || (isset($_SESSION['authorized']) && !$_SESSION['authorized'])) { //clear the menu unset($_SESSION["menu"]);