From: Daniel Karbach Date: Tue, 7 Feb 2023 09:58:36 +0000 (+0100) Subject: fix anonymous user permission X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=25e1c9c43a09d438c20db17bc5239cbc45b454cd;p=alttp.git fix anonymous user permission --- diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php index b11e3a8..31f9481 100644 --- a/app/Policies/UserPolicy.php +++ b/app/Policies/UserPolicy.php @@ -15,7 +15,7 @@ class UserPolicy * @param \App\Models\User $user * @return \Illuminate\Auth\Access\Response|bool */ - public function viewAny(User $user) + public function viewAny(?User $user) { return true; } @@ -27,7 +27,7 @@ class UserPolicy * @param \App\Models\User $model * @return \Illuminate\Auth\Access\Response|bool */ - public function view(User $user, User $model) + public function view(?User $user, User $model) { return true; }