diff --git a/src/cms/contexts/models.py b/src/cms/contexts/models.py index 4f3a5e6..0f1e1f1 100644 --- a/src/cms/contexts/models.py +++ b/src/cms/contexts/models.py @@ -223,7 +223,7 @@ def get_parent_fullpath(self): def is_localizable_by(self, user=None, obj=None, parent=False): if not user: return False if user.is_superuser: return True - self if not obj else obj + item = self if not obj else obj parent = self.parent if parent else self eb_permission = EditorialBoardEditors.get_permission(parent, user) perms = is_translator(eb_permission)