Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jan 5, 2020
1 parent 38a24ba commit b689efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func SearchRepository(opts *SearchRepoOptions) (RepositoryList, int64, error) {
}

if opts.AllPublic {
accessCond = accessCond.Or(builder.Eq{"is_private": false}).And(builder.In("owner_id", builder.Select("user.id").From("user").Where(builder.Lte{"user.visibility": 1})))
accessCond = accessCond.Or(builder.Eq{"is_private": false}).And(builder.In("owner_id", builder.Select("`user`.id").From("`user`").Where(builder.Lte{"`user`.visibility": 1})))
}

cond = cond.And(accessCond)
Expand Down

0 comments on commit b689efb

Please sign in to comment.