diff --git a/extend/base/common/service/AuthServiceBase.php b/extend/base/common/service/AuthServiceBase.php index d5cdf83..1b7d55a 100644 --- a/extend/base/common/service/AuthServiceBase.php +++ b/extend/base/common/service/AuthServiceBase.php @@ -66,6 +66,11 @@ class AuthServiceBase return $this; } + public function isSuperAdmin() + { + return $this->adminId == AdminConstant::SUPER_ADMIN_ID; + } + /** * 检测检测权限. * @param null $node @@ -77,7 +82,7 @@ class AuthServiceBase public function checkNode($node = null) { // 判断是否为超级管理员 - if ($this->adminId == AdminConstant::SUPER_ADMIN_ID) { + if ($this->isSuperAdmin()) { return true; } // 判断权限验证开关