Skip to content

Commit

Permalink
policy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Feb 1, 2025
1 parent 58c15ee commit 6da8ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Policies/PlayerPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function viewAnyIntel(?User $user)
}

if ($showPlayerIntelTo === 'self') {
return $user->isStaffMember();
return $user && $user->isStaffMember();
}

if ($showPlayerIntelTo === 'login') {
Expand Down

0 comments on commit 6da8ce3

Please sign in to comment.