djangocms-page-meta icon indicating copy to clipboard operation
djangocms-page-meta copied to clipboard

Bug/#214-Fix misnamed 'change_page' permission

Open jdgoettsch opened this issue 5 months ago • 0 comments

Description

Fixes the KeyError that occurs in Django CMS 3.11.8 or later.

PageToolbarMeta.populate tests for a permission named change but the proper permission name is change_page, causing a KeyError to be raised with Django CMS 3.11.8 or later. change_page has been used since at least Django CMS 3.4.0, but a refactoring of Django CMS' cms.utils.has_page_permission function in 3.11.8 now results in a KeyError being raised.

References

Fix #214

Checklist

  • [X] I have read the contribution guide
  • [X] Code lint checked via inv lint
  • [X] changes file included (see docs)

jdgoettsch avatar Sep 11 '24 23:09 jdgoettsch