Skip to content

Commit

Permalink
fix: allow non-student to login
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed Aug 7, 2024
1 parent 389ea55 commit 28e5ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/GoogleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 28e5ab5

Please sign in to comment.