From 107fc1d0696efd6a3444f1c52cd3edf7e6d64c4a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 4 Sep 2024 02:45:05 +0000 Subject: [PATCH] fix check --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index bb467d4c5b..30af5e82b4 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -277,7 +277,7 @@ App::init() /** * Admin User Authentication */ - elseif (!$team->isEmpty()) { + elseif (($project->getId() === 'console' && !$team->isEmpty()) || $mode === APP_MODE_ADMIN) { if ($user->isEmpty()) { throw new Exception(Exception::USER_UNAUTHORIZED); }