added canListCompletedTransactions to chargingStation auth
MODIFY
src/server/rest/v1/service/AuthorizationService.ts
src/server/rest/v1/service/AuthorizationService.ts
@@ -798,6 +798,9 @@ export default class AuthorizationService {
chargingStation.canPushTransactionCDR = await AuthorizationService.canPerformAuthorizationAction(
tenant, userToken, Entity.CHARGING_STATION, Action.PUSH_TRANSACTION_CDR, authorizationFilter,
{ chargingStationID: chargingStation.id, SiteID: chargingStation.siteID }, chargingStation);
+ chargingStation.canListCompletedTransactions = await AuthorizationService.canPerformAuthorizationAction(
+ tenant, userToken, Entity.TRANSACTION, Action.GET_COMPLETED_TRANSACTION, authorizationFilter,
+ { chargingStationID: chargingStation.id, SiteID: chargingStation.siteID }, chargingStation);
// Remote start stop capability using OCPI data (Roaming)
let hasRemoteStartStopCapability = true;
if (!chargingStation.issuer) {

MODIFY
src/types/Authorization.ts
src/types/Authorization.ts
@@ -299,6 +299,7 @@ export interface ChargingStationAuthorizationActions extends AuthorizationAction
canUpdateChargingProfile?:boolean;
canGetConnectorQRCode?:boolean;
canPushTransactionCDR?: boolean;
+ canListCompletedTransactions?: boolean;
}
export interface ConnectorAuthorizationActions extends AuthorizationActions {

added canListCompletedTransactions to chargingStation auth