Merge pull request #4677 from mhofer117/patch-1
fix blank page on /user when not logged
This commit is contained in:
commit
09dca5d76c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user