Cap self-serve gate relay timers

This commit is contained in:
Jeppe B
2026-06-01 23:45:20 +02:00
parent e3b38519fb
commit 3b3ed31bb7
6 changed files with 51 additions and 2 deletions
@@ -30,6 +30,7 @@ class moduleSelfServeRoute
{
use route_t;
private const MAX_GATE_OPEN_TOGGLE_AFTER_SECONDS = 5;
private const CUSTOMER_SELFSERVE_PERMISSION = 'list_own_department_selfserve_vehicle_conditions';
public function run(): void
@@ -1596,6 +1597,7 @@ class moduleSelfServeRoute
}
self::requireMinValue($toggle_after, 1);
self::requireMaxValue($toggle_after, self::MAX_GATE_OPEN_TOGGLE_AFTER_SECONDS);
return $toggle_after;
}