From 269efbe2f00e39bef069cea3b95ae7e46cac185e Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 4 Sep 2024 12:25:51 +0545 Subject: [PATCH] Update api.php --- app/controllers/shared/api.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 30af5e82b4..992e0646a1 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -278,10 +278,6 @@ App::init() * Admin User Authentication */ elseif (($project->getId() === 'console' && !$team->isEmpty()) || $mode === APP_MODE_ADMIN) { - if ($user->isEmpty()) { - throw new Exception(Exception::USER_UNAUTHORIZED); - } - $teamId = $team->getId(); $adminRoles = []; $memberships = $user->getAttribute('memberships', []);