mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: don't let blocked users reach post creator or new post queue
correct broken spec
This commit is contained in:
parent
11d39345b3
commit
bafdf9290d
2 changed files with 11 additions and 0 deletions
|
@ -484,6 +484,8 @@ describe PostsController do
|
|||
it 'queues the post if min_first_post_typing_time is not met' do
|
||||
|
||||
SiteSetting.min_first_post_typing_time = 3000
|
||||
# our logged on user here is tl1
|
||||
SiteSetting.auto_block_fast_typers_max_trust_level = 1
|
||||
|
||||
xhr :post, :create, {raw: 'this is the test content', title: 'this is the test title for the topic'}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue