修改部门经理权限
This commit is contained in:
@@ -14,7 +14,10 @@ class Common extends BaseCommon
|
||||
{
|
||||
$groupType = $_SESSION['groupType'];
|
||||
if ($groupType == Pingan_users_model::GROUP_TYPE_DEP) { //部经理
|
||||
$where = ['groupType' => Pingan_users_model::GROUP_TYPE_TEAM];
|
||||
$where = [
|
||||
'groupType' => Pingan_users_model::GROUP_TYPE_TEAM,
|
||||
'depId' => $_SESSION['id']
|
||||
];
|
||||
$result = $this->pingan_users_model->select($where, 'id asc', '', '', 'id as value,username as label');
|
||||
} elseif ($groupType > Pingan_users_model::GROUP_TYPE_DEP || $_SESSION['id'] == 1) { //部经理以上
|
||||
$groupList = Pingan_users_model::GROUP_TYPE_TEAM . ',' . Pingan_users_model::GROUP_TYPE_DEP;
|
||||
|
||||
Reference in New Issue
Block a user