konto optionen

This commit is contained in:
salam committed 2025-09-22 10:02:08 +02:00
1 parent 47edd31030
commit e5ea920579
25 files changed
+309 -178

No files matched your search

+70
View File
@@ -0,0 +1,70 @@
<?php
declare(strict_types=1);
namespace App\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use App\Models\KontoOption;
use Illuminate\Auth\Access\HandlesAuthorization;
class KontoOptionPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:KontoOption');
}
public function view(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('View:KontoOption');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:KontoOption');
}
public function update(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('Update:KontoOption');
}
public function delete(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('Delete:KontoOption');
}
public function restore(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('Restore:KontoOption');
}
public function forceDelete(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('ForceDelete:KontoOption');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:KontoOption');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:KontoOption');
}
public function replicate(AuthUser $authUser, KontoOption $kontoOption): bool
{
return $authUser->can('Replicate:KontoOption');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:KontoOption');
}
}