Skip to content

Commit a450aba

Browse files
committed
use lowercase for visibility
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 08d46f9 commit a450aba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/user/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,12 +1234,12 @@ func isUserVisibleToViewerCond(viewer *User) builder.Cond {
12341234

12351235
if viewer == nil || viewer.IsRestricted {
12361236
return builder.Eq{
1237-
"`user`.Visibility": structs.VisibleTypePublic,
1237+
"`user`.visibility": structs.VisibleTypePublic,
12381238
}
12391239
}
12401240

12411241
return builder.Neq{
1242-
"`user`.Visibility": structs.VisibleTypePrivate,
1242+
"`user`.visibility": structs.VisibleTypePrivate,
12431243
}.Or(
12441244
builder.In("`user`.id",
12451245
builder.

0 commit comments

Comments
 (0)