Skip to content

Commit 43d75c0

Browse files
committed
Fix bug
1 parent 9f9c7cf commit 43d75c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func (opts FindOrgOptions) toConds() builder.Cond {
532532
cond = cond.And(builder.Eq{"`org_user`.uid": opts.UserID})
533533
}
534534
if !opts.IncludePrivate {
535-
cond = cond.And(builder.Eq{"`user`.visibility=?": structs.VisibleTypePublic})
535+
cond = cond.And(builder.Eq{"`user`.visibility": structs.VisibleTypePublic})
536536
}
537537
return cond
538538
}

0 commit comments

Comments
 (0)