basics of adding / removing hetzner servers

This commit is contained in:
Andras Bacsai
2025-10-09 10:41:29 +02:00
parent c1bcc41546
commit 215301fa8f
15 changed files with 744 additions and 119 deletions

View File

@@ -100,7 +100,7 @@ class CloudProviderTokens extends Component
public function deleteToken(int $tokenId)
{
try {
$token = CloudProviderToken::findOrFail($tokenId);
$token = CloudProviderToken::ownedByCurrentTeam()->findOrFail($tokenId);
$this->authorize('delete', $token);
$token->delete();