This commit is contained in:
salam committed 2025-10-03 17:03:13 +02:00
1 parent 9b36f0d088
commit 4204c74406
18 files changed
+298 -239

No files matched your search

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