Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge remote branch 'cloudant:78077-pass-user_ctx_to_filter'
This closes #150

Signed-off-by: Eric Avdey <eiri@eiri.ca>
  • Loading branch information
eiri committed Nov 11, 2016
2 parents 3dcdb6a + 32fc26b commit c1f035f1bede433a8d723cffb7a6c2ecdcde073a
Showing 1 changed file with 2 additions and 1 deletion.
@@ -83,7 +83,8 @@ handle_changes_req(#httpd{path_parts=[_,<<"_changes">>]}=Req, _Db) ->
handle_changes_req1(#httpd{}=Req, Db) ->
#changes_args{filter=Raw, style=Style} = Args0 = parse_changes_query(Req),
ChangesArgs = Args0#changes_args{
filter_fun = couch_changes:configure_filter(Raw, Style, Req, Db)
filter_fun = couch_changes:configure_filter(Raw, Style, Req, Db),
db_open_options = [{user_ctx, Db#db.user_ctx}]
},
Max = chttpd:chunked_response_buffer_size(),
case ChangesArgs#changes_args.feed of

0 comments on commit c1f035f

Please sign in to comment.