mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 05:35:08 +08:00
fix: userController is_admin
This commit is contained in:
@@ -62,7 +62,7 @@ class UserController extends AdminAbstractController
|
||||
'info' => '普通管理员需要分配角色才能访问角色对应的资源;超级管理员可以访问全部资源',
|
||||
'default' => NO,
|
||||
'render' => function ($field, &$rule) {
|
||||
if ($this->auth_service->isSupperAdmin()) {
|
||||
if (!$this->auth_service->isSupperAdmin()) {
|
||||
$rule['type'] = 'hidden';
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user