Simplify account deletion condition in ProfileController
This commit is contained in:
parent
9bc46996e4
commit
94d64c989b
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ public function destroy(ProfileDeleteRequest $request): RedirectResponse
|
|||
|
||||
$user->workspaces()->detach();
|
||||
|
||||
if ($account && $user->isAccountOwner()) {
|
||||
if ($account) {
|
||||
$account->delete();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue