API Feature (#334)

This commit is contained in:
Saeed Vaziry
2024-11-01 16:49:57 +01:00
committed by GitHub
parent da7b24640e
commit 417bf73e44
143 changed files with 36520 additions and 586 deletions

View File

@ -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();