From fb68cdb945d1e3e0af707aeb094d908fb5d55eed Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 20 Apr 2022 09:35:49 +0800 Subject: [PATCH] setter --- app/controller/manager/Index.php | 5 +++-- view/manager/index/dashboard.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controller/manager/Index.php b/app/controller/manager/Index.php index c42530d..5b3f34b 100644 --- a/app/controller/manager/Index.php +++ b/app/controller/manager/Index.php @@ -45,8 +45,9 @@ class Index extends Base */ public function dashboard() { - $this->data["member_rule"] = array_filter(explode(",", session('auth')['rules'])); - $this->data["admin_rule"] = Member::MANAGER_ROLE_ID; + + $this->data["member_role"] = array_filter(explode(",", session('auth')['roles'])); + $this->data["admin_role"] = Member::MANAGER_ROLE_ID; return $this->view(); } diff --git a/view/manager/index/dashboard.html b/view/manager/index/dashboard.html index 6e0b1a1..252b368 100644 --- a/view/manager/index/dashboard.html +++ b/view/manager/index/dashboard.html @@ -7,7 +7,7 @@