From 6da8ce3deabad135dba3c97fa4d254852de196c5 Mon Sep 17 00:00:00 2001 From: Xinecraft Date: Sat, 1 Feb 2025 21:40:26 +0530 Subject: [PATCH] policy fix --- app/Policies/PlayerPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Policies/PlayerPolicy.php b/app/Policies/PlayerPolicy.php index c0071a76..e30ab135 100644 --- a/app/Policies/PlayerPolicy.php +++ b/app/Policies/PlayerPolicy.php @@ -29,7 +29,7 @@ public function viewAnyIntel(?User $user) } if ($showPlayerIntelTo === 'self') { - return $user->isStaffMember(); + return $user && $user->isStaffMember(); } if ($showPlayerIntelTo === 'login') {