Название «personal message enabled groups» запутывает

Not sure if this is the best category for this topic.

I didn’t see any one else post about this, but I just want to say I think the SIteSetting personal message enabled groups is confusingly labelled.

  • Discourse has a global option personal message enabled groups , which is the minimum trust level a user needs to be before they can create direct messages
  • Users have a separate option (checkbox) to send or receive direct messages, user_option.allow_private_messages

What we desire is all non-staff/moderators/admins to NOT be able to send messages to users in trust_level_1 , which hopefully would be accomplished by setting personal_message_enabled_groups to trust_level_2. But it appears the two options above are treated separately, and the user option takes precedence. i.e., a user in trust_level_1 certainly can’t INITIATE DMs, but if allow_private_messages is enabled, the value can_send_private_message_to_user is true.

Since the global option doesn’t override the checkbox, it seems inaccurate to say personal message enabled groups, as a user not in the group set by this value is still enabled to be in a PM (they just can’t start one). I can see the desire to still have the user option override this SiteSetting, so I think this setting could be named something else, possibly personal message initiating groups?

5 лайков