From 9b7a5f55b73bb352358f362a33a23fbcff027784 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 28 Jan 2024 03:01:34 +0000 Subject: [PATCH] fix linter --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 608a564150..3e07514e79 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -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); } }