django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
34 stars 30 forks source link

Permission denied is raised, although user has permission to edit the page #409

Closed jrief closed 6 months ago

jrief commented 6 months ago

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:

Expected behaviour

A user does not expect a permission denied exception, since he has permissions to edit the page.

fsbraun commented 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?

image

OK, I just reproduced this, and the answer is yes.

fsbraun commented 6 months ago

Found the issue:

Patch is coming up

jrief commented 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? image

Yes, in the page tree view I can reproduce this by clicking on the "page settings" icon.

jrief commented 6 months ago

This pull request fixes the problem: https://github.com/django-cms/django-cms/pull/7921