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

KeyError occurs when CMS toolbar is visible in Django CMS 3.11.8

Open jdgoettsch opened this issue 5 months ago • 1 comments

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

  1. Install djangocms-page-meta with django-cms 3.11.8.
  2. 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".

jdgoettsch avatar Sep 11 '24 22:09 jdgoettsch