Category Restrictor plugin

Discourse Category Restrictor

:information_source: Summary Allows staff and category moderators to silence users in specific categories
:hammer_and_wrench: Repository Link https://github.com/communiteq/discourse-category-restrictor
:open_book: Install Guide How to install plugins in Discourse
:moneybag: Sponsored by @Gotchur

Features

Allows staff and category moderators to silence users in specific categories

Configuration

There is a manage button in category settings - security (for admin)

Because category moderators cannot access the category settings, they get an icon on the category page

6a3f4344d3f98f0e4bf90bf52e7f236066ba7c98_2_517x94

The button opens a management modal which allows one to add and remove users

Posting in a category where the user is silenced will give an error popup

1e493548d64386a701d45f313d3a99b5718b4ed1_2_517x198

Attempting to create a topic in another category and then moving it to a silenced category will fail as well

In addition, the “+ New Topic” and “Reply” buttons will be disabled and/or removed where applicable.

Future developments (

PRs welcome or PM me for funding :wink:

  • Set an expiry date
  • Hide category from new topic dropdown
  • Hide category from move topic dropdown
  • Ban users instead of silencing them
  • Allow large amounts of users (currently there is no pagination or paginated loading)
16 Likes

That is really valuable moderation tool. Thanks!

5 Likes

This is quite the extension to moderation. Being able to silence a user from a specific category vs a site wide and granting Category Moderators this capability is definitely a real need.

1 Like

@RGJ Hi!
I’ve added the plugin to my forum, but category moderators still doesn’t have the opportunity to silence users, there is no button on the category page
For admins it’s there and works fine

What can be wrong?

2 Likes

Thank you for reporting this. I’ve updated the plugin so it’s now compatible with the “multiple groups as category moderators” change (280adda). Everything works as it should again, you just need to update the plugin.

4 Likes