djangocms-page-meta
djangocms-page-meta copied to clipboard
Bug/#214-Fix misnamed 'change_page' permission
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)