mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 06:39:16 +02:00
Switched to is_authenticated (no parenthesis)
This commit is contained in:
parent
e9c3eb59a3
commit
0559b1b1ab
4 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue