Browse Source

fix wrong root role name

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 năm trước cách đây
mục cha
commit
92ef72d07a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/src/pages/user/User.tsx

+ 1 - 1
client/src/pages/user/User.tsx

@@ -49,7 +49,7 @@ const Users = () => {
           r.users.map((u: any) => u.name).includes(name)
         );
         const originRoles =
-          v === 'root' ? ['root'] : rolesByName.map((r: any) => r.role.name);
+          v === 'root' ? ['admin'] : rolesByName.map((r: any) => r.role.name);
         return {
           name: v,
           role: originRoles.join(' , '),