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

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

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

jdgoettsch
Copy link
Contributor

@jdgoettsch jdgoettsch commented Sep 11, 2024

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

@coveralls
Copy link

Coverage Status

coverage: 95.082%. remained the same
when pulling 998e7a0 on jdgoettsch:develop
into 17b2bc7 on nephila:develop.

@protoroto
Copy link
Member

@jdgoettsch Thanks for this contribution: will release a new version in a few minutes!

@protoroto protoroto merged commit ec60692 into nephila:develop Jan 14, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError occurs when CMS toolbar is visible in Django CMS 3.11.8
4 participants