diff --git a/backstage/application/api/controllers/api/Order.php b/backstage/application/api/controllers/api/Order.php index 19c1d69..bb81c36 100644 --- a/backstage/application/api/controllers/api/Order.php +++ b/backstage/application/api/controllers/api/Order.php @@ -519,7 +519,7 @@ class Order extends REST_Controller $total_price = $this->input->post('total_price'); $notes = $this->input->post('notes'); - + if ($this->user->type_id != USERTYPE_OFFICIAL) { if (floatval($total_price) >= 0) { } else { @@ -1399,7 +1399,7 @@ where } } - if(isset($user->username) && $user->username != ''){ + if(isset($user->username) && $user->username != '' && $user->company_id != 4151){ $user->username = cutName($user->username); } $alldata['user'] = $user;