File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -217,16 +217,14 @@ func SearchRepositoryCondition(opts *SearchRepoOptions) builder.Cond {
217
217
cond = cond .And (accessibleRepositoryCondition (opts .Actor ))
218
218
}
219
219
} else {
220
- // Not looking at private organisations
220
+ // Not looking at private organisations and users
221
221
// We should be able to see all non-private repositories that
222
222
// isn't in a private or limited organisation.
223
223
cond = cond .And (
224
224
builder.Eq {"is_private" : false },
225
225
builder .NotIn ("owner_id" , builder .Select ("id" ).From ("`user`" ).Where (
226
- builder .And (
227
- builder.Eq {"type" : UserTypeOrganization },
228
- builder .Or (builder.Eq {"visibility" : structs .VisibleTypeLimited }, builder.Eq {"visibility" : structs .VisibleTypePrivate }),
229
- ))))
226
+ builder .Or (builder.Eq {"visibility" : structs .VisibleTypeLimited }, builder.Eq {"visibility" : structs .VisibleTypePrivate }),
227
+ )))
230
228
}
231
229
232
230
if opts .IsPrivate != util .OptionalBoolNone {
You can’t perform that action at this time.
0 commit comments