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
59 stars 64 forks source link

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

Open jdgoettsch opened 2 months ago

jdgoettsch commented 2 months 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