|
|
@ -2862,7 +2862,10 @@ function getAdminUsernameList(array $ids)
|
|
|
|
|
|
|
|
|
|
|
|
function isMarketLeader()
|
|
|
|
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) {
|
|
|
|
if (!$authGroup) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2873,6 +2876,9 @@ function isMarketLeader()
|
|
|
|
|
|
|
|
|
|
|
|
function isMarketAdmin()
|
|
|
|
function isMarketAdmin()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(IS_SUBSITE){
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
$ids = getMarketGroupIds();
|
|
|
|
$ids = getMarketGroupIds();
|
|
|
|
if (count($ids) == 0) {
|
|
|
|
if (count($ids) == 0) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|