fix: deletions

This commit is contained in:
Andras Bacsai
2023-11-06 18:04:18 +01:00
parent 87af9e46a6
commit 149fee2452
16 changed files with 144 additions and 35 deletions

View File

@@ -14,7 +14,7 @@ class Delete extends Component
{
try {
$this->authorize('delete', $this->server);
if (!$this->server->isEmpty()) {
if ($this->server->hasDefinedResources()) {
$this->emit('error', 'Server has defined resources. Please delete them first.');
return;
}