rest_authentication: accept any parameters in AnonymousAuthenticServerUser.has_perm (#52104)
This commit is contained in:
parent
1d712335ef
commit
0be901c7a3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue