Add missing method on AnonymousUser (#649)

This commit is contained in:
thomas girod
2023-09-07 23:53:42 +02:00
committed by GitHub
parent 2db66e6154
commit aaf30ab965
2 changed files with 31 additions and 0 deletions

View File

@ -810,6 +810,10 @@ class AnonymousUser(AuthAnonymousUser):
def can_edit(self, obj):
return False
@property
def is_com_admin(self):
return False
def can_view(self, obj):
if (
hasattr(obj, "view_groups")