switch from users to user
MODIFY
src/server/rest/v1/service/AuthorizationService.ts
src/server/rest/v1/service/AuthorizationService.ts
@@ -321,7 +321,7 @@ export default class AuthorizationService {
!tags.canExport && delete tags.canExport; // Optimize data over the net
tags.canUnassign = await AuthorizationService.canPerformAuthorizationAction(tenant, userToken, Entity.TAG, Action.UNASSIGN, authorizationFilter);
!tags.canUnassign && delete tags.canUnassign; // Optimize data over the net
- tags.canListUsers = await AuthorizationService.canPerformAuthorizationAction(tenant, userToken, Entity.USERS, Action.LIST, authorizationFilter);
+ tags.canListUsers = await AuthorizationService.canPerformAuthorizationAction(tenant, userToken, Entity.USER, Action.LIST, authorizationFilter);
!tags.canListUsers && delete tags.canListUsers; // Optimize data over the net
tags.metadata = authorizationFilter.metadata;
for (const tag of tags.result) {
@@ -350,7 +350,7 @@ export default class AuthorizationService {
tenant, userToken, Entity.TAG, Action.ASSIGN, authorizationFilter, { TagID: tag.id }, tag);
!tag.canAssign && delete tag.canAssign; // Optimize data over the net
tag.canListUsers = await AuthorizationService.canPerformAuthorizationAction(
- tenant, userToken, Entity.USERS, Action.LIST, authorizationFilter);
+ tenant, userToken, Entity.USER, Action.LIST, authorizationFilter);
!tag.canListUsers && delete tag.canListUsers; // Optimize data over the net
}
}

switch from users to user