Skrytí osobních údajů #1

Nezobrazovat detail logu anonymnímu uživateli #2
This commit is contained in:
Zdeněk Burda
2026-01-10 12:50:45 +01:00
parent 41e3ce6f25
commit 1e484aef47
7 changed files with 419 additions and 203 deletions

View File

@@ -8,6 +8,16 @@ use Illuminate\Auth\Access\Response;
class LogPolicy
{
public function viewAny(User $user): bool
{
return (bool) $user->is_admin;
}
public function view(User $user, Log $log): bool
{
return (bool) $user->is_admin;
}
public function create(User $user): bool
{
return (bool) $user->is_admin;