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(); }