修改区域管理员限制

This commit is contained in:
lccsw
2025-12-12 10:14:23 +08:00
parent a10c1656a7
commit bb48ae16b1
@@ -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 {