Skip to content

Commit

Permalink
Fixed parsing of permissions for non-authenticated access.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Jul 20, 2022
1 parent e76f9ee commit 9d51fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Governable.php
Expand Up @@ -25,7 +25,7 @@ protected function filterQuery(Builder $query, Collection $ownerships): Builder
{
if (
$ownerships->contains("any")
|| auth()->user()->hasRole("SuperAdmin")
|| auth()->user()?->hasRole("SuperAdmin")
) {
return $query;
}
Expand Down

0 comments on commit 9d51fc8

Please sign in to comment.