add SofaScoreRosaPolicy
This commit is contained in:
1 parent
fb19559eff
commit
75f1d9f36b
1 file changed
+66
@@ -0,0 +1,66 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Policies;
|
||||||
|
|
||||||
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||||
|
use Illuminate\Foundation\Auth\User as AuthUser;
|
||||||
|
|
||||||
|
class SofaScoreRosaPolicy
|
||||||
|
{
|
||||||
|
use HandlesAuthorization;
|
||||||
|
|
||||||
|
public function viewAny(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('ViewAny:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function view(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('View:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function create(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Create:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Update:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Delete:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function restore(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Restore:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function forceDelete(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('ForceDelete:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function forceDeleteAny(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('ForceDeleteAny:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function restoreAny(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('RestoreAny:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function replicate(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Replicate:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function reorder(AuthUser $authUser): bool
|
||||||
|
{
|
||||||
|
return $authUser->can('Reorder:SofaScoreRosa');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user