check if demo or not
This commit is contained in:
@ -44,7 +44,7 @@ switch ($action) {
|
||||
// if has active plan, change the password to devices
|
||||
$p = ORM::for_table('tbl_plans')->where('id', $c['plan_id'])->find_one();
|
||||
$dvc = Package::getDevice($p);
|
||||
if (file_exists($dvc)) {
|
||||
if (file_exists($dvc) && $_app_stage != 'demo') {
|
||||
require_once $dvc;
|
||||
(new $p['device'])->remove_customer($c, $p);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user