Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Merge remote branch 'cloudant:78077-pass-user_ctx_to_filter'
Browse files Browse the repository at this point in the history
This closes #150

Signed-off-by: Eric Avdey <eiri@eiri.ca>
  • Loading branch information
eiri committed Nov 11, 2016
2 parents 3dcdb6a + 32fc26b commit c1f035f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chttpd_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1f035f

Please sign in to comment.