// FIXME: Should return 4 (all public repositories related to "another" user = owned + collaborative), now returns only public repositories directly owned by user
nil:{count:2},
nil:{count:4},
user:{count:8,includesPrivate:true},
// FIXME: Should return 4 (all public repositories related to "another" user = owned + collaborative), now returns only public repositories directly owned by user
searcherReposCond=searcherReposCond.Or(builder.Expr("id IN (SELECT repo_id FROM `access` WHERE access.user_id = ? AND owner_id != ?)",
opts.Searcher.ID,opts.Searcher.ID))
}
collaborateCond:=builder.And(
builder.Expr("id IN (SELECT repo_id FROM `access` WHERE access.user_id = ?)",opts.OwnerID),
builder.Neq{"owner_id":opts.OwnerID})
if!opts.Private{
collaborateCond=collaborateCond.And(builder.Expr("owner_id NOT IN (SELECT org_id FROM org_user WHERE org_user.uid = ? AND org_user.is_public = ?)",opts.OwnerID,false))