Skip to content

Commit

Permalink
Merge f689c5a into d6a01f6
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Apr 27, 2017
2 parents d6a01f6 + f689c5a commit df17cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/behavior/paywall/transforms.py
Expand Up @@ -52,6 +52,7 @@ class PaywallTransform(object):
def __init__(self, published, request):
self.published = published
self.request = request
self.context = getattr(published, 'context', None)
registry = getUtility(IRegistry)
self.settings = registry.forInterface(IPaywallSettings)

Expand Down Expand Up @@ -83,7 +84,7 @@ def transformIterable(self, result, encoding):
if not self.response_is_html:
return

if not paywall_enabled(self.published.context):
if not paywall_enabled(self.context):
return
logger.debug('Paywall enabled in context')

Expand Down

0 comments on commit df17cc1

Please sign in to comment.