Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError occurs when CMS toolbar is visible in Django CMS 3.11.8 #214

Open
jdgoettsch opened this issue Sep 11, 2024 · 1 comment · May be fixed by #215
Open

KeyError occurs when CMS toolbar is visible in Django CMS 3.11.8 #214

jdgoettsch opened this issue Sep 11, 2024 · 1 comment · May be fixed by #215

Comments

@jdgoettsch
Copy link

jdgoettsch commented Sep 11, 2024

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 jdgoettsch linked a pull request Sep 11, 2024 that will close this issue
3 tasks
@tschale
Copy link

tschale commented Oct 25, 2024

Thank you for the fix! What's the state of it? Is there a timeline for its release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants