From 6666fd0ed4dd75511a0eb5252dc94bce93190516 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 9 Aug 2024 17:25:52 +0700 Subject: [PATCH] Mikrotik Hotspot remove active after move to expired --- system/devices/MikrotikHotspot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/devices/MikrotikHotspot.php b/system/devices/MikrotikHotspot.php index c10461bf..f3b6226a 100644 --- a/system/devices/MikrotikHotspot.php +++ b/system/devices/MikrotikHotspot.php @@ -46,6 +46,8 @@ class MikrotikHotspot $p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']); if($p){ $this->add_customer($customer, $p); + $this->removeHotspotActiveUser($client, $customer['username']); + return; } } $this->removeHotspotUser($client, $customer['username']);