mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 13:41:04 +08:00
FIX: Don't enqueue topics if the user can't create them
Co-authored-by: Vinoth Kannan <vinothkannan@vinkas.com>
This commit is contained in:
@ -994,6 +994,7 @@ module Email
|
||||
end
|
||||
raise TooShortPost
|
||||
end
|
||||
|
||||
raise InvalidPost, errors.join("\n") if result.errors.any?
|
||||
|
||||
if result.post
|
||||
|
Reference in New Issue
Block a user