Merge pull request '优化' (#447) from feature/testing_resource_lhcgx into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/447
master
廖金灵 4 years ago
commit ce7431f20f

@ -2939,6 +2939,13 @@ function getSearchAdminIds($searchAdminParam = 'admin_id', $searchDepartmentPara
return $adminIds; return $adminIds;
} }
function needSearchDepartment()
{
$isMarketAdmin = isMarketAdmin();
$isMarketLeader = isMarketLeader();
return !$isMarketLeader && !$isMarketAdmin && !empty($_REQUEST['department_id']);
}
function isMarketAdmin() function isMarketAdmin()
{ {
if(IS_SUBSITE){ if(IS_SUBSITE){

Loading…
Cancel
Save