We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576e31a commit 9c6d04eCopy full SHA for 9c6d04e
models/organization/org.go
@@ -715,7 +715,7 @@ func (env *accessibleReposEnv) cond() builder.Cond {
715
if env.team != nil {
716
cond = cond.And(builder.Eq{"team_repo.team_id": env.team.ID})
717
} else {
718
- if env.user == nil || !env.user.IsRestricted {
+ if env.user == nil || env.user.IsRestricted {
719
cond = cond.Or(builder.Eq{
720
"`repository`.owner_id": env.org.ID,
721
"`repository`.is_private": false,
0 commit comments