no need to be static after all

This commit is contained in:
Pierre-antoine Comby 2020-03-24 20:25:08 +01:00
parent d4b8d35206
commit 8ab142c122
2 changed files with 1 additions and 2 deletions

View file

@ -89,7 +89,6 @@ class PermissionBackend(ModelBackend):
query = query | perm.query
return query
@staticmethod
def has_perm(self, user_obj, perm, obj=None):
if user_obj is None or isinstance(user_obj, AnonymousUser):
return False