Switched to is_authenticated (no parenthesis)

This commit is contained in:
Eliot Berriot 2017-12-15 23:42:20 +01:00
parent e9c3eb59a3
commit 0559b1b1ab
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 7 additions and 7 deletions

View file

@ -7,5 +7,5 @@ class ConditionalAuthentication(BasePermission):
def has_permission(self, request, view):
if settings.API_AUTHENTICATION_REQUIRED:
return request.user and request.user.is_authenticated()
return request.user and request.user.is_authenticated
return True