diff --git a/app/Http/Controllers/GoogleController.php b/app/Http/Controllers/GoogleController.php index f6504c5..a55ebf8 100644 --- a/app/Http/Controllers/GoogleController.php +++ b/app/Http/Controllers/GoogleController.php @@ -109,7 +109,7 @@ public function handleGoogleCallback(): RedirectResponse { } } - if (isset($user->student_id) or $user->email == self::ADMIN_ACCOUNT_EMAIL) { + if (isset($user->student_id) or $user->email == self::ADMIN_ACCOUNT_EMAIL or !empty($user->roles)) { Auth::login($user); return redirect()->intended('dashboard');