forked from kevinowino869/mitrobill
disconnect customer when moving to expired
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user