FEATURE: hide enable_personal_email_messages and min_trust_to_send_email_messages

These site settings are very hard to explain and only applicable for very
specific Discourse setups.

If an admin "enables staged users" which is used in support scenarios then
all staff can send "messages" directly to an "email".

The setting allows you to extend this to TL4 or any trust level.

Actual use case would be a support type setup with restricted staff. It is
quite rare so hiding this for now and re-evaluate keeping the setting in
2019
This commit is contained in:
Sam
2018-08-27 11:38:11 +10:00
parent 2271918be2
commit 4205c528d0
6 changed files with 16 additions and 14 deletions

View File

@@ -183,7 +183,7 @@ class TopicCreator
rollback_with!(topic, :no_user_selected)
end
if @opts[:target_emails].present? && !@guardian.cand_send_private_messages_to_email? then
if @opts[:target_emails].present? && !@guardian.can_send_private_messages_to_email? then
rollback_with!(topic, :reply_by_email_disabled)
end