Files
nuhodds_fi4/app/Policies/StatistikoEventPolicy.php
T
2026-10-04 15:25:03 +02:00

68 lines
1.6 KiB
PHP

<?php
namespace App\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Foundation\Auth\User as AuthUser;
class StatistikoEventPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:StatistikoEvent');
}
public function view(AuthUser $authUser): bool
{
return $authUser->can('View:StatistikoEvent');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:StatistikoEvent');
}
public function update(AuthUser $authUser): bool
{
return $authUser->can('Update:StatistikoEvent');
}
public function delete(AuthUser $authUser): bool
{
return $authUser->can('Delete:StatistikoEvent');
}
public function restore(AuthUser $authUser): bool
{
return $authUser->can('Restore:StatistikoEvent');
}
public function forceDelete(AuthUser $authUser): bool
{
return $authUser->can('ForceDelete:StatistikoEvent');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:StatistikoEvent');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:StatistikoEvent');
}
public function replicate(AuthUser $authUser): bool
{
return $authUser->can('Replicate:StatistikoEvent');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:StatistikoEvent');
}
}