67 lines
1.5 KiB
PHP
67 lines
1.5 KiB
PHP
<?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');
|
|
}
|
|
}
|