Skip to content

Commit

Permalink
fix doc filter for view
Browse files Browse the repository at this point in the history
  • Loading branch information
nirav24 committed Jan 10, 2023
1 parent d0a9ee1 commit 857e72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/design_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func filterViewResult(input sgbucket.ViewResult, user auth.User, applyChannelFil
// Is any item of channels found in visibleChannels?
func channelsIntersect(visibleChannels ch.TimedSet, channels []interface{}) bool {
for _, channel := range channels {
if visibleChannels.Contains(channel.(string)) || channel == "*" {
if visibleChannels.Contains(channel.(string)) {
return true
}
}
Expand Down

0 comments on commit 857e72b

Please sign in to comment.