mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:11:12 +08:00
FEATURE: 'reply by email address' validator
Prevent infinite email loophole when the 'reply_by_email_address' site setting is the same as the 'notification_email'.
This commit is contained in:
@ -146,10 +146,7 @@ module Email
|
||||
end
|
||||
|
||||
def private_reply?
|
||||
SiteSetting.reply_by_email_enabled? &&
|
||||
reply_by_email_address.present? &&
|
||||
@opts[:allow_reply_by_email] &&
|
||||
@opts[:private_reply]
|
||||
allow_reply_by_email? && @opts[:private_reply]
|
||||
end
|
||||
|
||||
def from_value
|
||||
|
Reference in New Issue
Block a user