1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-06-03 13:13:09 +03:00

Merge pull request from zhanghongfei/master

In the method permission_denied, did not use the request parameter.
This commit is contained in:
Tom Christie 2014-03-02 20:56:29 +00:00
commit ee9864e0dc

View File

@ -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()