misc: limit indexing to anonymous cells (#15422)

This commit is contained in:
Frédéric Péters 2017-03-15 23:44:03 +01:00
parent e202e28792
commit e0d5cc20da
1 changed files with 4 additions and 0 deletions

View File

@ -472,6 +472,10 @@ class CellBase(models.Model):
context = Context({'synchronous': True})
if not self.is_enabled():
return ''
if self.user_dependant:
return ''
if not self.page.is_visible(user=None):
return ''
if not self.is_visible(user=None):
return ''
if not self.is_relevant(context):