add ploicies for statistiko

This commit is contained in:
salam committed 2026-07-12 09:32:31 +02:00
1 parent 7e000dce88
commit 20829cdc17
8 files changed
+473 -2

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\SofaScoreTask;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class SofaScoreTaskPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, SofaScoreTask $sofaScoreTask): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, SofaScoreTask $sofaScoreTask): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, SofaScoreTask $sofaScoreTask): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, SofaScoreTask $sofaScoreTask): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, SofaScoreTask $sofaScoreTask): bool
{
return false;
}
}
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\SofaScoreTournament;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class SofaScoreTournamentPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, SofaScoreTournament $sofaScoreTournament): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, SofaScoreTournament $sofaScoreTournament): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, SofaScoreTournament $sofaScoreTournament): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, SofaScoreTournament $sofaScoreTournament): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, SofaScoreTournament $sofaScoreTournament): bool
{
return false;
}
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\StatisticFixtures;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class StatisticFixturesPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StatisticFixtures $statisticFixtures): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StatisticFixtures $statisticFixtures): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StatisticFixtures $statisticFixtures): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, StatisticFixtures $statisticFixtures): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, StatisticFixtures $statisticFixtures): bool
{
return false;
}
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\StatistikoDetail;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class StatistikoDetailPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StatistikoDetail $statistikoDetail): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StatistikoDetail $statistikoDetail): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StatistikoDetail $statistikoDetail): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, StatistikoDetail $statistikoDetail): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, StatistikoDetail $statistikoDetail): bool
{
return false;
}
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\StatistikoEvent;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class StatistikoEventPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StatistikoEvent $statistikoEvent): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StatistikoEvent $statistikoEvent): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StatistikoEvent $statistikoEvent): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, StatistikoEvent $statistikoEvent): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, StatistikoEvent $statistikoEvent): bool
{
return false;
}
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\StatistikoImport;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class StatistikoImportPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StatistikoImport $statistikoImport): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StatistikoImport $statistikoImport): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StatistikoImport $statistikoImport): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, StatistikoImport $statistikoImport): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, StatistikoImport $statistikoImport): bool
{
return false;
}
}
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\StatistikoPlayer;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class StatistikoPlayerPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, StatistikoPlayer $statistikoPlayer): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, StatistikoPlayer $statistikoPlayer): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, StatistikoPlayer $statistikoPlayer): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, StatistikoPlayer $statistikoPlayer): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, StatistikoPlayer $statistikoPlayer): bool
{
return false;
}
}
+11 -2
View File
@@ -124,8 +124,17 @@ return [
'merge' => true,
'generate' => true,
'methods' => [
'viewAny', 'view', 'create', 'update', 'delete', 'restore',
'forceDelete', 'forceDeleteAny', 'restoreAny', 'replicate', 'reorder',
'viewAny',
'view',
'create',
'update',
'delete',
'restore',
'forceDelete',
'forceDeleteAny',
'restoreAny',
'replicate',
'reorder',
],
'single_parameter_methods' => [
'viewAny',