]> git.localhorst.tv Git - alttp.git/commitdiff
fix anonymous user permission
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 Feb 2023 09:58:36 +0000 (10:58 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 Feb 2023 09:58:36 +0000 (10:58 +0100)
app/Policies/UserPolicy.php

index b11e3a812ff8c52596b2756e9fab007584c8bdd9..31f9481743a5dec9d75db78d5474b6b8267b8978 100644 (file)
@@ -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;
        }