Closed jrief closed 6 months ago
Does the permission denied message also appear if you click on the settings icon in the page tree if there is no draft version of the page?
OK, I just reproduced this, and the answer is yes.
Found the issue:
has_view_permission
for the page content's admin classhas_change_permission
is overwritten to account for publishing statusPatch is coming up
Does the permission denied message also appear if you click on the settings icon in the page tree if there is no draft version of the page?
Yes, in the page tree view I can reproduce this by clicking on the "page settings" icon.
This pull request fixes the problem: https://github.com/django-cms/django-cms/pull/7921
This happens in CMS4 branch
develop-4
(650f31a80f9c3a579d40f201477f546ca663e88e
) in combination with djangocms-versioning (adce88065509c84212e432c41c05a121c246ed1f also latest).In some situations a permission denied exception is raised, although the user has permission to edit that page. This happens when the user attempts to accessing the page settings editor.
How to reproduce:
/en/admin/djangocms_versioning/pagecontentversion/?page=8943&language=en
. Replacepage=…
against a valid Page-ID.Expected behaviour
A user does not expect a permission denied exception, since he has permissions to edit the page.