Skip to content
Snippets Groups Projects
Verified Commit f3e951cc authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Always return False for `has_person` if not logged in

parent d6fe6b89
No related branches found
No related tags found
1 merge request!460Always return False for `has_person` if not logged in
Pipeline #5489 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment