diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index be77705d9b..6118dd63b6 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -343,7 +343,7 @@ App::shutdown() if ( App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled' && $project->getId() - // && $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin + && $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin && !empty($route->getLabel('sdk.namespace', null)) ) { // Don't calculate console usage on admin mode