nitely / Spirit

Spirit is a modern Python based forum built on top of Django framework
http://spirit.readthedocs.io
MIT License
1.16k stars 334 forks source link

Restrict access, commenting, or creating topics in a category #67

Open alesdotio opened 9 years ago

alesdotio commented 9 years ago

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:

henri-hulski commented 9 years ago

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

alesdotio commented 9 years ago

I started working on these changes on my fork