Various phpstan fixes [skip ci]

This commit is contained in:
James Cole
2025-01-04 08:42:06 +01:00
parent d4942efd8e
commit c43b37baef
34 changed files with 43 additions and 1229 deletions

View File

@@ -34,15 +34,13 @@ class UserPolicy
public function view(User $user, User $user1): bool
{
return true;
return auth()->check() && $user->id === $account->user_id;
// return auth()->check() && $user->id === $account->user_id;
}
public function viewAccounts(User $user): bool
{
return true;
return auth()->check();
// return auth()->check();
}
/**
@@ -53,7 +51,6 @@ class UserPolicy
public function viewAny(): bool
{
return true;
return auth()->check();
// return auth()->check();
}
}