修改区域管理员限制
This commit is contained in:
@@ -19,6 +19,9 @@ class Common extends BaseCommon
|
||||
} elseif ($groupType > Pingan_users_model::GROUP_TYPE_DEP || $_SESSION['id'] == 1) { //部经理以上
|
||||
$groupList = Pingan_users_model::GROUP_TYPE_TEAM . ',' . Pingan_users_model::GROUP_TYPE_DEP;
|
||||
$where = ["groupType in ($groupList)" => null];
|
||||
if ($groupType == Pingan_users_model::GROUP_TYPE_AREA) { //区域
|
||||
$where['areaId'] = $_SESSION['id'];
|
||||
}
|
||||
$rows = $this->pingan_users_model->select($where, 'id asc', '', '', 'id,username,groupType,teamId,depId');
|
||||
$result = $this->toTree($rows);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user