Spirit icon indicating copy to clipboard operation
Spirit copied to clipboard

Restrict access, commenting, or creating topics in a category

Open alesdotio opened this issue 9 years ago • 2 comments

Hi @nitely! Thanks for the great software :star2:, really made my life much easier!

I am implementing a forum based on Spirit and was wondering if you had any plans of having restrictions on categories? I think it would make sense to be able to have categories with special rules as to who can see/access them, who can create topics and who can comment. This would allow you to have private categories for only a selected few, for example a "Moderators" category; or a "Announcements" category where only admins can create topics, but everyone can comment, etc.

If you already had some ideas on how you want to do this, let me know. I will be implementing this in my fork shortly and it would be cool if we can come up with a solution that can be merged in. I think using the django.contrib.auth groups would make the most sense in this case and I would add 3 M2M fields to Category. Something like:

  • restrict_access
  • restrict_create_topic
  • restrict_create_comment

alesdotio avatar Aug 10 '15 20:08 alesdotio

:+1: I also need private categories. And thanks a lot for this beautiful forum.

henri-hulski avatar Aug 10 '15 20:08 henri-hulski

I started working on these changes on my fork

alesdotio avatar Aug 12 '15 20:08 alesdotio