From 731e7437a1ffd9f179aad636213855b682721d3b Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 20 Apr 2022 09:34:17 +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 cc3dc76..c42530d 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(",", session('auth.rules'))); + $this->data["member_rule"] = array_filter(explode(",", session('auth')['rules'])); $this->data["admin_rule"] = Member::MANAGER_ROLE_ID; return $this->view(); }