正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -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 { |
-
请 注册 或 登录 后发表评论