Skip to content

Commit

Permalink
hotfix: Login error
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Sep 24, 2024
1 parent cfc31b6 commit 58d0e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Classes/Authentication/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function createNewToken($token, ?Request $request = null)
}

if ($permission->key === "redirect") {
if (! auth()->user()->isAdmin()) {
if (! auth('api')->user()->isAdmin()) {
$viewPermissions["redirect"] = $permission->value;
}
}
Expand Down

0 comments on commit 58d0e1e

Please sign in to comment.