mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: staged users couldn't create new topic in a private category via email
This commit is contained in:
parent
1b9b68cb51
commit
5415b2666d
5 changed files with 17 additions and 27 deletions
|
@ -78,7 +78,7 @@ module Email
|
|||
raise StrangersNotAllowedError if user.staged? && !category.email_in_allow_strangers
|
||||
raise InsufficientTrustLevelError if !user.has_trust_level?(SiteSetting.email_in_min_trust)
|
||||
|
||||
create_topic(user: user, raw: body, title: subject, category: category.id)
|
||||
create_topic(user: user, raw: body, title: subject, category: category.id, skip_validations: user.staged?)
|
||||
when :reply
|
||||
email_log = destination[:obj]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue