diff --git a/admin/hooks/Auth.php b/admin/hooks/Auth.php index 19b367ef..0b6ab8f1 100644 --- a/admin/hooks/Auth.php +++ b/admin/hooks/Auth.php @@ -161,6 +161,8 @@ class Auth { if(!$role['status']) { return $this->returnMsg('您的权限已被禁用'); + } elseif('json' == $methods[0]){ + //弹框等公共搜索使用,无需菜单权限校验 } else {