Commit ee9864e0 by Tom Christie

Merge pull request #1448 from zhanghongfei/master

In the method permission_denied, did not use the request parameter.
parents b93e3a06 693d9d9c
...@@ -131,7 +131,7 @@ class APIView(View): ...@@ -131,7 +131,7 @@ class APIView(View):
""" """
If request is not permitted, determine what kind of exception to raise. If request is not permitted, determine what kind of exception to raise.
""" """
if not self.request.successful_authenticator: if not request.successful_authenticator:
raise exceptions.NotAuthenticated() raise exceptions.NotAuthenticated()
raise exceptions.PermissionDenied() raise exceptions.PermissionDenied()
......
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