master
wangxinglong 2022-04-20 09:35:49 +08:00
parent 731e7437a1
commit fb68cdb945
2 changed files with 4 additions and 3 deletions

View File

@ -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();
}

View File

@ -7,7 +7,7 @@
<div class="layui-panel" style="border-radius: 8px;">
<div class="layui-col-md7">
<div class="layui-row">
{if in_array($admin_rule,$member_rule)}
{if in_array($admin_role,$member_role)}
<div class="layui-col-md2" style="text-align: center; padding: 40px 20px">
<a href="javascript:;" layuimini-content-href="manager/consumer/index" data-title="用户管理">
<i class="fa fa-user-circle-o" style="font-size: 500%;"></i>