Fixed Start Transaction is not displayed for Basic users
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -411,7 +411,13 @@ export default class ChargingStationService {
const filteredRequest = ChargingStationValidatorRest.getInstance().validateChargingStationGetReq({ ...req.params, ...req.query });
// Check dynamic auth
let chargingStation = await UtilsService.checkAndGetChargingStationAuthorization(
- req.tenant, req.user, filteredRequest.ID, Action.READ, action, null, { withSite: filteredRequest.WithSite, withSiteArea: filteredRequest.WithSiteArea }, true);
+ req.tenant, req.user, filteredRequest.ID, Action.READ, action, null, {
+ // TODO: Put back the filters below when the Mobile App would have migrated to new Authorization checks
+ // withSite: filteredRequest.WithSite,
+ // withSiteArea: filteredRequest.WithSiteArea
+ withSite: true,
+ withSiteArea: true,
+ }, true);
// Return additional fields if user can update charging station
if (chargingStation.canUpdate) {
chargingStation = await UtilsService.checkAndGetChargingStationAuthorization(

Fixed Start Transaction is not displayed for Basic users