misc: don't consider cell if there's no user

This commit is contained in:
Frédéric Péters 2015-11-06 21:37:45 +01:00
parent 2cbbc58c4b
commit e9209b67c3
1 changed files with 4 additions and 0 deletions

View File

@ -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())