Merge pull request '优化bug' (#289) from hotfix/fiance_statement_bug_20210420 into master

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

@ -2862,7 +2862,10 @@ function getAdminUsernameList(array $ids)
function isMarketLeader()
{
$authGroup = M('sys_auth_group')->where(['title'=>'市场总监'])->find();
if(IS_SUBSITE){
return false;
}
$authGroup = M('auth_group','sys_')->where(['title'=>'市场总监'])->find();
if (!$authGroup) {
return false;
}
@ -2873,6 +2876,9 @@ function isMarketLeader()
function isMarketAdmin()
{
if(IS_SUBSITE){
return false;
}
$ids = getMarketGroupIds();
if (count($ids) == 0) {
return false;

Loading…
Cancel
Save