mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
API Feature (#334)
This commit is contained in:
@ -21,7 +21,7 @@ class Settings extends Page
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->authorize('update', $this->server);
|
||||
$this->authorize('update', [$this->server, auth()->user()->currentProject]);
|
||||
}
|
||||
|
||||
public function getWidgets(): array
|
||||
@ -45,6 +45,7 @@ protected function getHeaderActions(): array
|
||||
->requiresConfirmation()
|
||||
->modalHeading('Delete Server')
|
||||
->modalDescription('Once your server is deleted, all of its resources and data will be permanently deleted and can\'t be restored')
|
||||
->authorize('delete', $this->server)
|
||||
->action(function () {
|
||||
try {
|
||||
$this->server->delete();
|
||||
|
Reference in New Issue
Block a user