wip disable pp
This commit is contained in:
1 parent
85ac432878
commit
96598a09aa
2 files changed
+12
-4
No files matched your search
@@ -7,14 +7,13 @@ use Illuminate\Support\Carbon;
|
|||||||
use Illuminate\Support\LazyCollection;
|
use Illuminate\Support\LazyCollection;
|
||||||
use Spatie\SimpleExcel\SimpleExcelReader;
|
use Spatie\SimpleExcel\SimpleExcelReader;
|
||||||
|
|
||||||
set_time_limit(0);
|
|
||||||
|
|
||||||
ini_set('memory_limit', '1G');
|
|
||||||
|
|
||||||
class ImportPlayer
|
class ImportPlayer
|
||||||
{
|
{
|
||||||
public static function run(string $filePath): void
|
public static function run(string $filePath): void
|
||||||
{
|
{
|
||||||
|
set_time_limit(0);
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
|
||||||
$fieldnames = [
|
$fieldnames = [
|
||||||
'sport_id',
|
'sport_id',
|
||||||
'match_id',
|
'match_id',
|
||||||
|
|||||||
@@ -81,6 +81,15 @@ class PlayerProps extends Page implements HasForms
|
|||||||
$this->form->fill();
|
$this->form->fill();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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');
|
||||||
|
}
|
||||||
|
|
||||||
public function getWidgetData(): array
|
public function getWidgetData(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in new issue
Block a user