作者 唐旭辉

bug 修复

... ... @@ -293,11 +293,11 @@ func (service UsersService) buildGetUserList(usersData []domain.Users, permissio
for i := range usersData {
permissionTypes := []string{}
if usersData[i].IsSuperAdmin() {
for _, pp := range permissionData {
if permissionData[i].ParentId > 0 {
for _, pd := range permissionData {
if pd.ParentId > 0 {
continue
}
permissionTypes = append(permissionTypes, pp.Name)
permissionTypes = append(permissionTypes, pd.Name)
}
} else {
for _, vv := range usersData[i].Permission {
... ...