From 95432c96ef8a7dd8e828c7670e229003264cc85e Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 20 Apr 2022 09:33:24 +0800 Subject: [PATCH] setter --- app/controller/manager/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/manager/Index.php b/app/controller/manager/Index.php index dd6cc71..cc3dc76 100644 --- a/app/controller/manager/Index.php +++ b/app/controller/manager/Index.php @@ -45,7 +45,7 @@ class Index extends Base */ public function dashboard() { - $this->data["member_rule"] = array_filter(explode(",", $this->auth["rules"])); + $this->data["member_rule"] = array_filter(explode(",", session('auth.rules'))); $this->data["admin_rule"] = Member::MANAGER_ROLE_ID; return $this->view(); }