Skip to content

Commit f8fe663

Browse files
committed
FIX
1 parent 61055b0 commit f8fe663

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

models/org.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@ func (opts FindOrgOptions) toConds() builder.Cond {
442442
}
443443
if !opts.IncludePrivate {
444444
cond = cond.And(builder.Eq{"`user`.visibility": structs.VisibleTypePublic})
445-
} else {
446-
cond = cond.And(builder.Eq{"`user`.visibility": structs.VisibleTypePrivate}.Or(
447-
builder.Eq{"`user`.visibility": structs.VisibleTypeLimited},
448-
))
449445
}
450446
return cond
451447
}

0 commit comments

Comments
 (0)