user view_groups queryset to include groups that are public or discoverable
@@ -308,7 +308,9 @@ class UserAccess(models.Model):
gaccess__active=True) |
Q(g2ugp__user=self.user,
gaccess__active=False,
- g2ugp__privilege=PrivilegeCodes.OWNER)).distinct()
+ g2ugp__privilege=PrivilegeCodes.OWNER) |
+ Q(gaccess__active=True, gaccess__public=True) |
+ Q(gaccess__active=True, gaccess__discoverable=True)).distinct()
@property
def edit_groups(self):
