1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

enable ignoring stats on admin requests

This commit is contained in:
Damodar Lohani 2022-08-11 06:16:10 +00:00
parent b5f5aff626
commit d05e1fdfb3

View file

@ -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