diff --git a/aleksis/core/util/core_helpers.py b/aleksis/core/util/core_helpers.py index 18fcfc241ea76d96312e1339fbde6fd526218307..289a5fc6a021977553d91c3b46ffc283d47163a5 100644 --- a/aleksis/core/util/core_helpers.py +++ b/aleksis/core/util/core_helpers.py @@ -176,6 +176,9 @@ def has_person(obj: Union[HttpRequest, Model]) -> bool: else: return False + if obj.is_anonymous: + return False + person = getattr(obj, "person", None) if person is None: return False