Skip to content

Commit a45805d

Browse files
torcolvinCopilot
andauthored
Update db/design_doc.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 980589e commit a45805d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

db/design_doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ func filterViewResult(input sgbucket.ViewResult, user auth.User, applyChannelFil
285285
if user != nil {
286286
// Views only support default collection, so filter based on default collection channels
287287
visibleChannels, err = user.InheritedCollectionChannels(base.DefaultScope, base.DefaultCollection)
288+
if err != nil {
289+
return result, err
290+
}
288291
hasStarChannel = !visibleChannels.Contains("*")
289292
if !applyChannelFiltering {
290293
return // this is an error

0 commit comments

Comments
 (0)