Merge pull request #4677 from mhofer117/patch-1

fix blank page on /user when not logged
This commit is contained in:
Niklas Meyer 2022-07-13 15:07:43 +02:00 committed by GitHub
commit 09dca5d76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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