Unlock connector allowed in most status
MODIFY
src/server/rest/v1/service/AuthorizationService.ts
src/server/rest/v1/service/AuthorizationService.ts
@@ -792,10 +792,9 @@ export default class AuthorizationService {
// Unlock connector
connector.canUnlockConnector = !chargingStation.inactive
&& chargingStation.canUnlockConnector
- && [
- ChargePointStatus.FINISHING,
- ChargePointStatus.FAULTED,
- ChargePointStatus.SUSPENDED_EVSE,
+ && ![
+ ChargePointStatus.AVAILABLE,
+ ChargePointStatus.UNAVAILABLE,
].includes(connector.status);
// Remove sensible data
await AuthorizationService.canPerformAuthorizationAction(

Unlock connector allowed in most status (#3762)