2.x - php

This commit is contained in:
Saeed Vaziry
2024-09-28 15:19:55 +02:00
parent f6bc04763b
commit 32993025de
21 changed files with 698 additions and 83 deletions

View File

@ -30,7 +30,7 @@ class Settings extends Page
public static function canAccess(): bool
{
return auth()->user()?->can('update', request()->route('server')) ?? false;
return auth()->user()?->can('update', static::getServerFromRoute()) ?? false;
}
public function getWidgets(): array