Cap self-serve gate relay timers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user