mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-02 06:21:09 +00:00
fix visible_to_user for groups user is a member of
This commit is contained in:
parent
72e00f75c9
commit
eed9d44cfd
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class BookWyrmModel(models.Model):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# you can see groups of which you are a member
|
# you can see groups of which you are a member
|
||||||
if hasattr(self, "members") and viewer in self.members.all():
|
if hasattr(self, "memberships") and self.memberships.filter(user=viewer).exists():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# you can see objects which have a group of which you are a member
|
# you can see objects which have a group of which you are a member
|
||||||
|
|
Loading…
Reference in a new issue