Fix filter Site for siteAdmins in statistics
MODIFY
src/server/rest/v1/service/StatisticService.ts
src/server/rest/v1/service/StatisticService.ts
@@ -411,6 +411,8 @@ export default class StatisticService {
if (Authorizations.isSiteAdmin(loggedUser)) {
if (filteredRequest.UserID) {
filter.userIDs = filteredRequest.UserID.split('|');
+ } else if (filteredRequest.SiteID) {
+ filter.siteIDs = filteredRequest.SiteID.split('|');
} else {
// Only for current sites
filter.siteIDs = loggedUser.sitesAdmin;

Fix filter Site for siteAdmins in statistics