mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 12:21: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:
parent
00ad6e8e37
commit
6b51d84dc5
4 changed files with 30 additions and 5 deletions
|
@ -825,7 +825,7 @@ describe Email::Receiver do
|
|||
|
||||
Group.refresh_automatic_group!(:trust_level_4)
|
||||
|
||||
expect { process(:tl3_user) }.to_not change(Topic, :count)
|
||||
expect { process(:tl3_user) }.to raise_error(Email::Receiver::InvalidPost)
|
||||
expect { process(:tl4_user) }.to change(Topic, :count)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue