2
0
Fork 0
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:
Régis Hanol 2018-11-09 18:24:28 +01:00
parent 00ad6e8e37
commit 6b51d84dc5
4 changed files with 30 additions and 5 deletions

View file

@ -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