disconnect customer when moving to expired

This commit is contained in:
Ibnu Maksum 2024-08-09 16:29:26 +07:00
parent c7e1dc963f
commit b7b23fc39a
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 5 additions and 1 deletions

View File

@ -75,6 +75,10 @@ class MikrotikPppoe
$p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']);
if($p){
$this->add_customer($customer, $p);
$this->removePpoeActive($client, $customer['username']);
if (!empty($customer['pppoe_username'])) {
$this->removePpoeActive($client, $customer['pppoe_username']);
}
return;
}
}

View File

@ -1,3 +1,3 @@
{
"version": "2024.8.9"
"version": "2024.8.9.1"
}