djangocms-page-meta
djangocms-page-meta copied to clipboard
KeyError occurs when CMS toolbar is visible in Django CMS 3.11.8
Description
PageToolbarMeta.populate
uses incorrect permission name to check if a user has change permission on the current page, causing a KeyError
to be raised with django-cms >= 3.11.8.
Steps to reproduce
- Install djangocms-page-meta with django-cms 3.11.8.
- Log into your website and visit any page with the toolbar visible.
Versions
Python 3.10.14 Django 4.2.16 django-cms. 3.11.8
Expected behaviour
Page loads without crashing.
Actual behaviour
KeyError
occurs and page crashes.
Additional information
In djangocms_page_meta/cms_toolbars.py
on line 39, "change" should instead be "change_page".