Hello, I have a requirement where a user can post topics specific to a Category only after joining that Category. How can we retrieve an API that indicates which Categories the user is allowed to post in and which ones they cannot, ideally showing a lock symbol on the restricted Category cards? How can we achieve this functionality as I believe it requires both client and server side customization.
Users don’t join categories. They join groups. You can then use groups to control access to categories.
If you’re planning to have the users use Discourse, and not do this via some remote system that you’re trying to integrate, then it just works.
Or maybe you want to display categories for people who aren’t group members?
As Jay mentioned you can do the s via groups.
Create a Category you want visible but restricted.
Category Security Settings
- Everyone - See
- Group name - See/Create/reply
Now everyone can see the category but must join a group to create and respond to topics. Depending on Category purpose you could restrict who all can Create topics by adding a new group will full access with removing the Create permission.
You will want to edit this in Category settings.
To participate in category you need to <a href="/g/Pimaxians/members">Apply</a>
The above is what I use for a restricted category that requires joining a group to post.
Thank you Dan for pointing it to this which is pretty helpful info.