Add missing method on AnonymousUser (#649)

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

No files matched your search

+4
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")