Allow TL0 to write messages to staff group, not to other members or non staff?

I started working on this and noticed that the min trust to send messages is checked first on all PMs to groups. This means that TL0 users cannot message groups set to accept message from everyone. But it also means that a user with a TL below min trust to send messages cannot message a group set to accept messages from “members, moderators and admins”, even if this user is a member of the said group.

I think the fix here should be to skip validating min trust to send messages when PMing groups. This means that:

  • if team allows everyone to PM it… then everyone can PM it
  • if team allows group members to PM it, then all group members can PM it regardless of their trust level

PR: https://github.com/discourse/discourse/pull/8104

Update: this is now merged.

5 Likes