misc: fix method signature for json is_user_dependant (#40033)

This commit is contained in:
Frédéric Péters 2020-02-19 17:00:20 +01:00
parent f74979bb0c
commit 038ab5d4a1
1 changed files with 1 additions and 1 deletions

View File

@ -1167,7 +1167,7 @@ class JsonCellBase(CellBase):
def is_visible(self, user=None):
return bool(self.url) and super(JsonCellBase, self).is_visible(user=user)
def is_user_dependant(self):
def is_user_dependant(self, context=None):
urls = [self.url] + [x['url'] for x in self.additional_data or []]
for url in urls:
if url and ('user_nameid' in url or 'user_email' in url):