Remove obsolete check in code.
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -476,7 +476,8 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
Fn: 'custom:dynamicAuthorizationFilters',
args: { filters: ['SitesAdmin'] }
},
- attributes: ['*'] },
+ attributes: ['*']
+ },
{
resource: Entity.SITE_AREA, action: [Action.CREATE, Action.UPDATE, Action.DELETE,
Action.ASSIGN_ASSETS, Action.UNASSIGN_ASSETS, Action.ASSIGN_CHARGING_STATIONS, Action.UNASSIGN_CHARGING_STATIONS], attributes: ['*'],

MODIFY
src/authorization/dynamic-filters/SitesAdminDynamicAuthorizationFilter.ts
src/authorization/dynamic-filters/SitesAdminDynamicAuthorizationFilter.ts
@@ -21,12 +21,6 @@ export default class SitesAdminDynamicAuthorizationFilter extends DynamicAuthori
// Override
authorizationFilters.filters.siteIDs = filteredSiteIDs.filter(
(siteID) => authorizationFilters.filters.siteIDs.includes(siteID));
- } else if (Utils.objectHasProperty(extraFilters, 'siteID') &&
- !Utils.isNullOrUndefined(extraFilters['siteID'])) {
- const filteredSiteIDs: string[] = extraFilters['siteID'].split('|');
- // Override
- authorizationFilters.filters.siteIDs = filteredSiteIDs.filter(
- (siteID) => authorizationFilters.filters.siteIDs.includes(siteID));
}
}
if (!Utils.isEmptyArray(authorizationFilters.filters.siteIDs)) {

Remove obsolete check in code.