mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allow existing users to be invited to topic/message when must_approve_users is enabled
This commit is contained in:
@@ -73,7 +73,8 @@ describe InviteMailer do
|
||||
|
||||
|
||||
context "invite to topic" do
|
||||
let(:topic) { Fabricate(:topic, excerpt: "Topic invite support is now available in Discourse!") }
|
||||
let(:trust_level_2) { build(:user, trust_level: 2) }
|
||||
let(:topic) { Fabricate(:topic, excerpt: "Topic invite support is now available in Discourse!", user: trust_level_2) }
|
||||
let(:invite) { topic.invite(topic.user, 'name@example.com') }
|
||||
|
||||
context "default invite message" do
|
||||
|
||||
Reference in New Issue
Block a user