group members can see lists
- fix visible_to_user for group objects (like lists) - temporarily disable privacy_filter on group lists
This commit is contained in:
@ -84,8 +84,8 @@ class BookWyrmModel(models.Model):
|
||||
# you can see objects which have a group of which you are a member
|
||||
if hasattr(self, "group"):
|
||||
if (
|
||||
hasattr(self.group, "members")
|
||||
and viewer in self.group.members.all()
|
||||
hasattr(self.group, "memberships")
|
||||
and self.group.memberships.filter(user=viewer).exists()
|
||||
):
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user