|
@@ -275,6 +275,9 @@ class User extends Base_Controller{
|
|
|
|
|
|
$privilegeIds = $this->input->post('privilegeIds',true);
|
|
|
if ($privilegeIds !== NULL && $privilegeIds !== '') $data['privilege'] = $privilegeIds;
|
|
|
+ $data['role'] = intval($this->input->post('role'));
|
|
|
+
|
|
|
+ if (empty($data['role'])) exit(json_result('0724',$this->response['0724']));
|
|
|
|
|
|
$this->User_model->update($data,$where);
|
|
|
|