mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
migrating tests (Application, Console and Cronjob)
This commit is contained in:
@ -21,13 +21,13 @@ class Settings extends Page
|
||||
|
||||
protected static bool $shouldRegisterNavigation = false;
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
return auth()->user()?->can('update', get_from_route(Project::class, 'project')) ?? false;
|
||||
}
|
||||
|
||||
public Project $project;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->authorize('update', $this->project);
|
||||
}
|
||||
|
||||
public function getWidgets(): array
|
||||
{
|
||||
return [
|
||||
|
Reference in New Issue
Block a user