Skip to content

Commit

Permalink
fix(business): remove first member from projects' members in portal (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wangao1236 committed Oct 14, 2020
1 parent cc54c29 commit 3b67f2d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/business/registry/util/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ func FilterWithUser(ctx context.Context,
return isAdmin, projectList, nil
}

for _, project := range rawList {
if len(project.Spec.Members) > 0 && project.Spec.Members[0] == userName && !picked[project.Name] {
picked[project.Name] = true
projectList.Items = append(projectList.Items, project)
}
}
if userID == "" {
return isAdmin, projectList, nil
}
Expand Down

0 comments on commit 3b67f2d

Please sign in to comment.