Commit ed047258 by Brandon Cazander

Use enhanced request when cloning requests for checking permissions on other methods. Fixes #2455

parent 0ee2edc0
...@@ -86,7 +86,7 @@ def clone_request(request, method): ...@@ -86,7 +86,7 @@ def clone_request(request, method):
Internal helper method to clone a request, replacing with a different Internal helper method to clone a request, replacing with a different
HTTP method. Used for checking permissions against other methods. HTTP method. Used for checking permissions against other methods.
""" """
ret = Request(request=request._request, ret = Request(request=request,
parsers=request.parsers, parsers=request.parsers,
authenticators=request.authenticators, authenticators=request.authenticators,
negotiator=request.negotiator, negotiator=request.negotiator,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment