diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 00dbc11..4fe1cb9 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -36,8 +36,7 @@ public function launchSSO($id) return redirect()->route('dashboard')->with('error', 'Access denied. You do not have permission to access this service.'); } - // If user is logged in via Microsoft, route all service launches (including Keka) - // through the Microsoft SSO flow to ensure their browser has an active Microsoft session. + if ($user->microsoft_id) { // Save target app URL in session so callback knows where to redirect session(['sso_target_url' => $app->url]);