From 7be2fbb32c8fa02afba13cfed9f1c8a873c0ac78 Mon Sep 17 00:00:00 2001 From: Jeffrey Goettsch Date: Wed, 11 Sep 2024 15:59:11 -0700 Subject: [PATCH] Fix misnamed 'change_page' permission --- changes/214.bugfix | 1 + djangocms_page_meta/cms_toolbars.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/214.bugfix diff --git a/changes/214.bugfix b/changes/214.bugfix new file mode 100644 index 0000000..3c82537 --- /dev/null +++ b/changes/214.bugfix @@ -0,0 +1 @@ +Fix misnamed 'change_page' permission when checking if user has change permission on current page. diff --git a/djangocms_page_meta/cms_toolbars.py b/djangocms_page_meta/cms_toolbars.py index 3af255d..468fdf7 100644 --- a/djangocms_page_meta/cms_toolbars.py +++ b/djangocms_page_meta/cms_toolbars.py @@ -36,7 +36,7 @@ def populate(self): # check global permissions if CMS_PERMISSIONS is active if get_cms_setting("PERMISSION"): has_global_current_page_change_permission = has_page_permission( - self.request.user, self.request.current_page, "change" + self.request.user, self.request.current_page, "change_page" ) else: has_global_current_page_change_permission = False