67 lines
1.6 KiB
PHP
67 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
use Illuminate\Foundation\Auth\User as AuthUser;
|
|
|
|
class SofaScoreTournamentPolicy
|
|
{
|
|
use HandlesAuthorization;
|
|
|
|
public function viewAny(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('ViewAny:SofaScoreTournament');
|
|
}
|
|
|
|
public function view(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('View:SofaScoreTournament');
|
|
}
|
|
|
|
public function create(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Create:SofaScoreTournament');
|
|
}
|
|
|
|
public function update(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Update:SofaScoreTournament');
|
|
}
|
|
|
|
public function delete(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Delete:SofaScoreTournament');
|
|
}
|
|
|
|
public function restore(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Restore:SofaScoreTournament');
|
|
}
|
|
|
|
public function forceDelete(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('ForceDelete:SofaScoreTournament');
|
|
}
|
|
|
|
public function forceDeleteAny(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('ForceDeleteAny:SofaScoreTournament');
|
|
}
|
|
|
|
public function restoreAny(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('RestoreAny:SofaScoreTournament');
|
|
}
|
|
|
|
public function replicate(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Replicate:SofaScoreTournament');
|
|
}
|
|
|
|
public function reorder(AuthUser $authUser): bool
|
|
{
|
|
return $authUser->can('Reorder:SofaScoreTournament');
|
|
}
|
|
}
|