Skip to content
Snippets Groups Projects
Commit 278fcf8f authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FIX #17703 TIME 0:15 fix entity count in /rest/administration/details

parent 71cb55f4
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,11 @@ class AdministrationController ...@@ -58,7 +58,11 @@ class AdministrationController
} }
if (PrivilegeController::hasPrivilege(['privilegeId' => 'manage_entities', 'userId' => $GLOBALS['id']])) { if (PrivilegeController::hasPrivilege(['privilegeId' => 'manage_entities', 'userId' => $GLOBALS['id']])) {
$entities = EntityModel::get(['select' => [1]]); $entities = EntityModel::get([
'select' => [1],
'where' => ['enabled = ?'],
'data' => ['Y']
]);
$count['entities'] = count($entities); $count['entities'] = count($entities);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment