mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
2.x - php
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user