Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar committed Feb 4, 2025
1 parent c129bba commit bbbae5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ public function authorize(): bool
throw new PanelException('An ACL resource must be defined on API requests.');
}

/** @var TransientToken|ApiKey $token */
$token = $this->user()->currentAccessToken();

if ($token instanceof TransientToken) {
return true;
}

/** @var ApiKey $token */
if ($token->key_type === ApiKey::TYPE_ACCOUNT) {
return true;
}
Expand Down

0 comments on commit bbbae5e

Please sign in to comment.