Removed check of roaming CS
MODIFY
src/server/rest/v1/service/AuthorizationService.ts
src/server/rest/v1/service/AuthorizationService.ts
@@ -550,8 +550,8 @@ export default class AuthorizationService {
dataSources: new Map(),
projectFields: [
'id', 'inactive', 'public', 'chargingStationURL', 'issuer', 'maximumPower', 'masterSlave', 'excludeFromSmartCharging', 'lastReboot',
- 'siteAreaID', 'siteArea.id', 'siteArea.name', 'siteArea.smartCharging', 'siteArea.siteID',
- 'site.id', 'site.public', 'site.name', 'siteID', 'voltage', 'coordinates', 'forceInactive', 'manualConfiguration', 'firmwareUpdateStatus', 'tariffID',
+ 'siteAreaID', 'siteArea.id', 'siteArea.name', 'siteArea.address', 'siteArea.smartCharging', 'siteArea.siteID',
+ 'site.id', 'site.public', 'site.name', 'site.address', 'siteID', 'voltage', 'coordinates', 'forceInactive', 'manualConfiguration', 'firmwareUpdateStatus', 'tariffID',
'capabilities', 'endpoint', 'chargePointVendor', 'chargePointModel', 'ocppVersion', 'ocppProtocol', 'lastSeen',
'firmwareVersion', 'currentIPAddress', 'ocppStandardParameters', 'ocppVendorParameters', 'connectors', 'chargePoints',
'createdOn', 'chargeBoxSerialNumber', 'chargePointSerialNumber', 'powerLimitUnit'

MODIFY
src/server/rest/v1/service/UtilsService.ts
src/server/rest/v1/service/UtilsService.ts
@@ -114,18 +114,6 @@ export default class UtilsService {
);
UtilsService.assertObjectExists(action, chargingStation, `ChargingStation ID '${chargingStationID}' does not exist`,
MODULE_NAME, 'checkAndGetChargingStationAuthorization', userToken);
- // External Charging Station
- // TODO: require auth migration to remove below check -> checkAndGetChargingStationAuthorizations doesn't use auth definition !
- if (!chargingStation.issuer) {
- throw new AppError({
- errorCode: HTTPError.GENERAL_ERROR,
- message: `ChargingStation Id '${chargingStation.id}' not issued by the organization`,
- module: MODULE_NAME, method: 'checkAndGetChargingStationAuthorization',
- user: userToken,
- action: action,
- ...LoggingHelper.getChargingStationProperties(chargingStation)
- });
- }
// Deleted?
if (chargingStation?.deleted) {
throw new AppError({

Removed check of roaming CS