Skip to content

Commit

Permalink
Fix misnamed 'change_page' permission (#215)
Browse files Browse the repository at this point in the history
Co-authored-by: Leonardo Cavallucci <[email protected]>
  • Loading branch information
jdgoettsch and protoroto authored Jan 14, 2025
1 parent 17b2bc7 commit ec60692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/214.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix misnamed 'change_page' permission when checking if user has change permission on current page.
2 changes: 1 addition & 1 deletion djangocms_page_meta/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec60692

Please sign in to comment.