Fixed OCPI tag visual ID
Admin can read roaming tags
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -183,7 +183,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
Fn: 'custom:dynamicAuthorizations',
args: {
asserts: [],
- filters: ['LocalIssuer'],
+ filters: [],
}
},
attributes: [

MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
@@ -692,12 +692,13 @@ export default class OCPIUtilsService {
ocpiError: OCPIStatusCode.CODE_2001_INVALID_PARAMETER_ERROR
});
}
- const tagToSave = {
+ const tagToSave: Tag = {
id: token.uid,
issuer: false,
userID: emspUser.id,
active: token.valid === true ? true : false,
description: token.visual_number,
+ visualID: token.visual_number,
lastChangedOn: token.last_updated,
ocpiToken: token
};

Fixed OCPI tag visual ID
Admin can read roaming tags