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.