作者 唐旭辉

bug 修复

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