wip
This commit is contained in:
1 parent
29018914d1
commit
8cb1d428cb
17 files changed
+214
-165
No files matched your search
@@ -1,21 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Illuminate\Foundation\Auth\User as AuthUser;
|
||||
|
||||
use App\Models\StatistikoDetail;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
|
||||
class StatistikoDetailPolicy
|
||||
{
|
||||
use HandlesAuthorization;
|
||||
|
||||
|
||||
public function viewAny(AuthUser $authUser): bool
|
||||
{
|
||||
return $authUser->can('ViewAny:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function view(AuthUser $authUser): bool
|
||||
public function view(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('View:StatistikoDetail');
|
||||
}
|
||||
@@ -25,22 +27,22 @@ class StatistikoDetailPolicy
|
||||
return $authUser->can('Create:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function update(AuthUser $authUser): bool
|
||||
public function update(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('Update:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function delete(AuthUser $authUser): bool
|
||||
public function delete(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('Delete:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function restore(AuthUser $authUser): bool
|
||||
public function restore(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('Restore:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function forceDelete(AuthUser $authUser): bool
|
||||
public function forceDelete(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('ForceDelete:StatistikoDetail');
|
||||
}
|
||||
@@ -55,7 +57,7 @@ class StatistikoDetailPolicy
|
||||
return $authUser->can('RestoreAny:StatistikoDetail');
|
||||
}
|
||||
|
||||
public function replicate(AuthUser $authUser): bool
|
||||
public function replicate(AuthUser $authUser, StatistikoDetail $statistikoDetail): bool
|
||||
{
|
||||
return $authUser->can('Replicate:StatistikoDetail');
|
||||
}
|
||||
@@ -64,4 +66,5 @@ class StatistikoDetailPolicy
|
||||
{
|
||||
return $authUser->can('Reorder:StatistikoDetail');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user