fix linter
This commit is contained in:
parent
e5dfed0aa3
commit
9b7a5f55b7
1 changed files with 2 additions and 2 deletions
|
@ -3040,13 +3040,13 @@ App::delete('/v1/account')
|
|||
if ($user->isEmpty()) {
|
||||
throw new Exception(Exception::USER_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
if ($project->getId() === 'console') {
|
||||
// get all memberships
|
||||
$memberships = $user->getAttribute('memberships', []);
|
||||
foreach ($memberships as $membership) {
|
||||
// prevent deletion if at lease one active membership
|
||||
if($membership->getAttribute('confirm', false)) {
|
||||
if ($membership->getAttribute('confirm', false)) {
|
||||
throw new Exception(Exception::USER_DELETION_WITH_ACTIVE_TEAMS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue