summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--combo_plugin_subscriptions/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/combo_plugin_subscriptions/models.py b/combo_plugin_subscriptions/models.py
index f1987ed..b63ec7d 100644
--- a/combo_plugin_subscriptions/models.py
+++ b/combo_plugin_subscriptions/models.py
@@ -154,3 +154,7 @@ class SubscriptionsManageCell(CellBase):
def __unicode__(self):
return u'<SubscriptionsManagePlugin %s>' % self.passerelle_url
+
+ def is_relevant(self, context):
+ # the cell is only relevant for connected users
+ return bool(context.get('user').is_authenticated())