Skip to content

Commit 9c6d04e

Browse files
committed
fix
1 parent 576e31a commit 9c6d04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/organization/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ func (env *accessibleReposEnv) cond() builder.Cond {
715715
if env.team != nil {
716716
cond = cond.And(builder.Eq{"team_repo.team_id": env.team.ID})
717717
} else {
718-
if env.user == nil || !env.user.IsRestricted {
718+
if env.user == nil || env.user.IsRestricted {
719719
cond = cond.Or(builder.Eq{
720720
"`repository`.owner_id": env.org.ID,
721721
"`repository`.is_private": false,

0 commit comments

Comments
 (0)