Update rollup
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 316b280e6629d20c4b26a6c50f49048a38f43691..411c452217e7e166bf77a47a1bf486836054616c 100644 (file)
@@ -599,7 +599,7 @@ export default class ChargingStation {
   }
 
   private getAuthorizationFile(): string {
-    return this.stationInfo.authorizationFile && path.join(path.resolve(__dirname, '../'), 'assets', this.stationInfo.authorizationFile);
+    return this.stationInfo.authorizationFile && path.join(path.resolve(__dirname, '../'), 'assets', path.basename(this.stationInfo.authorizationFile));
   }
 
   private getAuthorizedTags(): string[] {