Watched words for staff members too

Hi,

Is there any way to check staff for inappropriate words during posting? I tried Watched Words option, but it works only for non-staff. As I understand, it works as designed.

I would like to avoid staff members use some phrases, for instance, they need to check themselves the URL published (external must be):
NOT OK: The issue has been added: https://internal.domain.com/B-123
OK: The issue has been added: https://external.domain.com/B-123

How to achieve this?

3 Likes

I think you would need a custom plugin to place this kind of restriction on staff. They get a free pass with watched words.

3 Likes

Thank you, @sam!

The best solution I think is to work staff as normal users but with a sudo button to be able temporary granted as moderators or admins when they need :slight_smile:.

Reasons: 1) most of the time staff does the same things like normal users, 2) staff should understand what options of the forum regular users can use - sometimes staff members have the second user profile, but I don’t like this.

1 Like

I’m looking for a way to give a group immunity to watched words without making them staff.

I was thinking that I might

  1. replace the self.word with null or spaces in https://github.com/discourse/discourse/blob/master/app/models/watched_word.rb#L16-L18
  2. Make create_or_update_word return immediately if the user is member of the group (https://github.com/discourse/discourse/blob/master/app/models/watched_word.rb#L37-L44)

Does either of those seem like a reasonable way to allow a group to be immune to watched words?

2 Likes

I could use this also on a new community I’m building. I’ll definitely watch for a solution here.

2 Likes

This topic was automatically closed after 2294 days. New replies are no longer allowed.