diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 7a4e332fa..31d47049c 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2939,6 +2939,13 @@ function getSearchAdminIds($searchAdminParam = 'admin_id', $searchDepartmentPara return $adminIds; } +function needSearchDepartment() +{ + $isMarketAdmin = isMarketAdmin(); + $isMarketLeader = isMarketLeader(); + return !$isMarketLeader && !$isMarketAdmin && !empty($_REQUEST['department_id']); +} + function isMarketAdmin() { if(IS_SUBSITE){