[Web] Fix SOGo redirection after login

This commit is contained in:
FreddleSpl0it 2025-10-10 10:05:56 +02:00
parent 79cf0abc6e
commit 6708b94ebb
No known key found for this signature in database
GPG key ID: 00E14E7634F4BEC5

View file

@ -12,7 +12,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
$user_details = mailbox("get", "mailbox_details", $_SESSION['mailcow_cc_username']);
$is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
if (intval($user_details['attributes']['sogo_access']) == 1 && !$is_dual && getenv('SKIP_SOGO') != "y") {
header("Location: /SOGo/so/{$_SESSION['mailcow_cc_username']}");
header("Location: /SOGo/so/");
} else {
header("Location: /user");
}