wip
This commit is contained in:
1 parent
60aad552fa
commit
4e2b5ec656
2 files changed
+9
-8
No files matched your search
@@ -81,14 +81,14 @@ class PlayerProps extends Page implements HasForms
|
||||
$this->form->fill();
|
||||
}
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
// false blockiert den Zugriff für JEDEN (die Seite ist effektiv deaktiviert)
|
||||
// return false;
|
||||
// public static function canAccess(): bool
|
||||
// {
|
||||
// // false blockiert den Zugriff für JEDEN (die Seite ist effektiv deaktiviert)
|
||||
// // return false;
|
||||
|
||||
// Alternativ an Bedingungen knüpfen:
|
||||
return auth()->user()->hasRole('super_admin');
|
||||
}
|
||||
// // Alternativ an Bedingungen knüpfen:
|
||||
// return auth()->user()->hasRole('super_admin');
|
||||
// }
|
||||
|
||||
public function getWidgetData(): array
|
||||
{
|
||||
@@ -341,6 +341,7 @@ class PlayerProps extends Page implements HasForms
|
||||
public function setSeasonMode(string $country_id)
|
||||
{
|
||||
$this->season_mode = SofaScoreCategory::where('id', $country_id)->value('season_mode');
|
||||
|
||||
$this->dispatch('season_mode-update', season_mode: $this->season_mode);
|
||||
}
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ class PlayerPropsDrop extends Widget
|
||||
}
|
||||
|
||||
#[On('season_mode-update')]
|
||||
public function setSeason(string $season_mode)
|
||||
public function setSeason(string|int $season_mode)
|
||||
{
|
||||
$this->season_mode = $season_mode;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user