nephila / djangocms-page-meta

OpenGraph, Twitter Card and Google+ snippet tags for django CMS 3 pages
https://djangocms-page-meta.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
60 stars 64 forks source link

Bug/#214-Fix misnamed 'change_page' permission #215

Open jdgoettsch opened 1 month ago

jdgoettsch commented 1 month ago

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