rest_authentication: accept any parameters in AnonymousAuthenticServerUser.has_perm (#52104)

This commit is contained in:
Benjamin Dauvergne 2021-03-16 16:52:44 +01:00
parent 1d712335ef
commit 0be901c7a3
1 changed files with 3 additions and 3 deletions

View File

@ -31,13 +31,13 @@ class AnonymousAuthenticServiceUser(AnonymousUser):
def is_authenticated(self):
return CallableTrue
def has_perm(self, perm_or_perms, obj=None):
def has_perm(self, *args, **kwargs):
return True
def has_ou_perm(self, perm, ou):
def has_ou_perm(self, *args, **kwargs):
return True
def has_perm_any(self, perm):
def has_perm_any(self, *args, **kwargs):
return True
def filter_by_perm(self, perm_or_perms, qs):