Simplify account deletion condition in ProfileController

This commit is contained in:
Sebastian Albert 2026-05-19 17:19:37 +02:00 committed by GitHub
parent 9bc46996e4
commit 94d64c989b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,7 @@ public function destroy(ProfileDeleteRequest $request): RedirectResponse
$user->workspaces()->detach();
if ($account && $user->isAccountOwner()) {
if ($account) {
$account->delete();
}
});