Skip to content

Commit 77efa45

Browse files
committed
Fix bug
1 parent 70891b7 commit 77efa45

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
@@ -457,7 +457,7 @@ func (opts FindOrgOptions) toConds() builder.Cond {
457457
cond = cond.And(builder.Eq{"`org_user`.uid": opts.UserID})
458458
}
459459
if !opts.IncludePrivate {
460-
cond = cond.And(builder.Eq{"`user`.visibility=?": structs.VisibleTypePublic})
460+
cond = cond.And(builder.Eq{"`user`.visibility": structs.VisibleTypePublic})
461461
}
462462
return cond
463463
}

0 commit comments

Comments
 (0)