+ def is_accessible_to(self, user):
+ if not self.preview:
+ return True
+ if not user.is_authenticated:
+ return False
+ Membership = apps.get_model('club', 'Membership')
+ if Membership.is_active_for(user):
+ return True
+ Funding = apps.get_model('funding', 'Funding')
+ if Funding.objects.filter(user=user, offer__book=self):
+ return True
+ return False