no need to be static after all
This commit is contained in:
parent
d4b8d35206
commit
8ab142c122
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue