Skip to content

Commit e7cfe51

Browse files
committed
fix: selectedRepoIDs
1 parent c3f5f9c commit e7cfe51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routers/web/user/home.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,11 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
530530
// Parse ctx.FormString("repos") and remember matched repo IDs for later.
531531
// Gets set when clicking filters on the issues overview page.
532532
selectedRepoIDs := getRepoIDs(ctx.FormString("repos"))
533+
// Remove repo IDs that are not accessible to the user.
534+
selectedRepoIDs = util.SliceRemoveAllFunc(selectedRepoIDs, func(v int64) bool {
535+
return !accessibleRepos.Contains(v)
536+
})
533537
if len(selectedRepoIDs) > 0 {
534-
// Remove repo IDs that are not accessible to the user.
535-
selectedRepoIDs = util.SliceRemoveAllFunc(selectedRepoIDs, func(v int64) bool {
536-
return !accessibleRepos.Contains(v)
537-
})
538538
opts.RepoIDs = selectedRepoIDs
539539
}
540540

0 commit comments

Comments
 (0)