diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 8c4e50d16..94890ef7a 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -981,7 +981,7 @@ function getModuleControllerAuth() { $group = $_SESSION['onethink_admin']['user_group_id']; //获取全部权限列表 - $ruleList = M("AuthGroup")->field("rules")->where("id='{$group}'")->find()['rules']; + $ruleList = SM("AuthGroup","sys_")->field("rules")->where("id='{$group}'")->find()['rules']; //获取所有含有规则的数据 $mc = MODULE_NAME."/".CONTROLLER_NAME;