|
@@ -348,14 +348,14 @@ class User extends Backend
|
|
|
$this->error(__('No rows were updated'));
|
|
$this->error(__('No rows were updated'));
|
|
|
}
|
|
}
|
|
|
parse_str($this->request->post('params'), $values);
|
|
parse_str($this->request->post('params'), $values);
|
|
|
- $values = $this->auth->isSuperAdmin() ? $values : array_intersect_key($values, array_flip(is_array($this->multiFields) ? $this->multiFields : explode(',', $this->multiFields)));
|
|
|
|
|
|
|
+ //$values = $this->auth->isSuperAdmin() ? $values : array_intersect_key($values, array_flip(is_array($this->multiFields) ? $this->multiFields : explode(',', $this->multiFields)));
|
|
|
if (empty($values)) {
|
|
if (empty($values)) {
|
|
|
$this->error(__('You have no permission'));
|
|
$this->error(__('You have no permission'));
|
|
|
}
|
|
}
|
|
|
- // $adminIds = $this->getDataLimitAdminIds();
|
|
|
|
|
- // if (is_array($adminIds)) {
|
|
|
|
|
- // $this->model->where($this->dataLimitField, 'in', $adminIds);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ $adminIds = $this->getDataLimitAdminIds();
|
|
|
|
|
+ if (is_array($adminIds)) {
|
|
|
|
|
+ $this->model->where($this->dataLimitField, 'in', $adminIds);
|
|
|
|
|
+ }
|
|
|
$count = 0;
|
|
$count = 0;
|
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
|
try {
|
|
try {
|