Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
// Authorization check required
if (
chargingStation.getAuthorizeRemoteTxRequests() === true &&
- chargingStation.getMustAuthorizeAtRemoteStart() === true &&
(await OCPP16ServiceUtils.isIdTagAuthorized(chargingStation, transactionConnectorId, idTag))
) {
// Authorization successful, start transaction
connectorStatus.localAuthorizeIdTag = idTag;
connectorStatus.idTagLocalAuthorized = true;
authorized = true;
- } else {
+ } else if (chargingStation.getMustAuthorizeAtRemoteStart()) {
authorized = await OCPPServiceUtils.isIdTagRemoteAuthorized(
chargingStation,
connectorId,