Add admin check
MODIFY
src/server/rest/v1/service/AuthorizationService.ts
src/server/rest/v1/service/AuthorizationService.ts
@@ -723,7 +723,7 @@ export default class AuthorizationService {
private static async processDynamicFilters(tenant: Tenant, userToken: UserToken, action: Action, entity: Entity,
authorizationFilters: AuthorizationFilter, authorizationContext: AuthorizationContext, extraFilters?: Record<string, any>): Promise<void> {
- if (!Utils.isEmptyArray(authorizationContext.filters)) {
+ if (userToken.role !== UserRole.ADMIN && !Utils.isEmptyArray(authorizationContext.filters)) {
for (const filter of authorizationContext.filters) {
// Reset to false
authorizationFilters.authorized = false;

Add admin check