Skip to content

Commit

Permalink
use lowercase for visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Jul 3, 2022
1 parent 08d46f9 commit a450aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -1234,12 +1234,12 @@ func isUserVisibleToViewerCond(viewer *User) builder.Cond {

if viewer == nil || viewer.IsRestricted {
return builder.Eq{
"`user`.Visibility": structs.VisibleTypePublic,
"`user`.visibility": structs.VisibleTypePublic,
}
}

return builder.Neq{
"`user`.Visibility": structs.VisibleTypePrivate,
"`user`.visibility": structs.VisibleTypePrivate,
}.Or(
builder.In("`user`.id",
builder.
Expand Down

0 comments on commit a450aba

Please sign in to comment.