From fa19156cfbb26604028f284280d84c0e424e9941 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 23 Apr 2021 13:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 5168c00bd..88fa10232 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -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;