From a8132e4edb68d18beb8a568fd1919ec26133e2a8 Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Thu, 19 Feb 2026 15:44:20 +0530 Subject: [PATCH] fix projects --- 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 376ec8b1f9..f236266d81 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -322,7 +322,7 @@ Http::init() * For console projects resource, we use platform DB. * Enabling authorization restricts admin user to the projects they have access to. */ - if ($project->getId() === 'console' && str_starts_with($route->getPath(), '/v1/projects')) { + if ($project->getId() === 'console' && ($route->getPath() === '/v1/projects' || $route->getPath() === '/v1/projects/:projectId')) { $authorization->setDefaultStatus(true); } else { // Otherwise, disable authorization checks.