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