From 5b924614aa284cfcae07283b8dabca21d1a797c7 Mon Sep 17 00:00:00 2001 From: Marcel Hofer <3976393+mhofer117@users.noreply.github.com> Date: Tue, 12 Jul 2022 15:26:03 +0200 Subject: [PATCH] fix blank page on /user when not logged the current condition to redirect to / was never matching, so a blank page was displayed on /user when not logged in or when logged in as admin. this will fix it and always redirect to / if nothing is rendered in the user.php --- data/web/user.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/web/user.php b/data/web/user.php index d7faf791..d8fc80c1 100644 --- a/data/web/user.php +++ b/data/web/user.php @@ -91,8 +91,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == ' 'number_of_app_passwords' => $number_of_app_passwords, ]; } - -if (!isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') { +else { header('Location: /'); exit(); }