forked from mirrors/bookwyrm
Fixes bug in logged out group view
This commit is contained in:
parent
8a3be920c6
commit
0422421d60
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue