Browse Source

no message

wzh 5 năm trước cách đây
mục cha
commit
6bbe49112d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      api/application/controllers/Company.php

+ 2 - 2
api/application/controllers/Company.php

@@ -102,11 +102,11 @@ class Company extends Base_Controller {
 		$company = $this->get_user_info('company');
 		$role = $this->get_user_info('role');
 
-		// $type = intval($this->input->post('type',true));
+		$type = intval($this->input->post('type',true));
 
 		if (!empty($type)) $where['type'] = $type;
 
-		if ($role != SYSTEM_ADMIN) $where['id'] = $company;
+		// if ($role != SYSTEM_ADMIN) $where['id'] = $company;
 
         $list = $this->Company_model->get_list($where, 'id,name',null, null, 'name asc,id desc', NUll);