Files
nuhodds_fi4/app/Policies/StatistikoImportPolicy.php
T
2026-07-12 12:35:52 +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 StatistikoImportPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:StatistikoImport');
}
public function view(AuthUser $authUser): bool
{
return $authUser->can('View:StatistikoImport');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:StatistikoImport');
}
public function update(AuthUser $authUser): bool
{
return $authUser->can('Update:StatistikoImport');
}
public function delete(AuthUser $authUser): bool
{
return $authUser->can('Delete:StatistikoImport');
}
public function restore(AuthUser $authUser): bool
{
return $authUser->can('Restore:StatistikoImport');
}
public function forceDelete(AuthUser $authUser): bool
{
return $authUser->can('ForceDelete:StatistikoImport');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:StatistikoImport');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:StatistikoImport');
}
public function replicate(AuthUser $authUser): bool
{
return $authUser->can('Replicate:StatistikoImport');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:StatistikoImport');
}
}