From 7260726ae9305f88a507064aba0d0a89e57ea235 Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Tue, 17 Dec 2024 15:15:55 +0100 Subject: [PATCH] fix: bug --- src/cms/contexts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)