Fixes bug in logged out group view

This commit is contained in:
Mouse Reeve 2021-12-28 14:33:30 -08:00
parent 8a3be920c6
commit 0422421d60

View file

@ -84,6 +84,7 @@ class BookWyrmModel(models.Model):
# you can see groups of which you are a member
if (
hasattr(self, "memberships")
and viewer.is_authenticated
and self.memberships.filter(user=viewer).exists()
):
return