schneck
schneck

Reputation: 10847

Restrict certain pages in Django-CMS

Disclaimer: I asked the question also at Google+, but I'm not sure how active the community there is

I'm struggling with Django CMS' permissions, and the documentation remains unclear for me. I have the following requirements:

I don't find the way to achieve this. Could you point me to the right combination of settings? Here are some more specific questions:

Would be great if anyone had some hints. Thanks!

Upvotes: 5

Views: 1390

Answers (1)

schneck
schneck

Reputation: 10847

I found a solution myself now:

First I wrote a custom middleware that redirects all requests to Django CMS pages to the login. Then, I removed the “can view pages” permission from all groups and all global permissions for non-staff.

Finally I removed all view restrictions on the page root and set them only on the particular pages which should be restricted.

If you are interested about some more findings in Django CMS' permissions: I blogged some thoughts about it here: http://blog.webrunners.de/2015/09/08/django-cms-permission-pitfalls/

Upvotes: 5

Related Questions