Skip to content

Commit b689efb

Browse files
committed
try to fix
1 parent 38a24ba commit b689efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func SearchRepository(opts *SearchRepoOptions) (RepositoryList, int64, error) {
228228
}
229229

230230
if opts.AllPublic {
231-
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})))
231+
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})))
232232
}
233233

234234
cond = cond.And(accessCond)

0 commit comments

Comments
 (0)