mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: PostActionCreator
was not checking the guardian properly
It also exposed a bug in the EmailReceiver spec, where a test had a user liking their own post and was not failing.
This commit is contained in:
@ -241,7 +241,7 @@ describe Email::Receiver do
|
||||
let(:category) { Fabricate(:category) }
|
||||
let(:user) { Fabricate(:user, email: "discourse@bar.com") }
|
||||
let(:topic) { create_topic(category: category, user: user) }
|
||||
let(:post) { create_post(topic: topic, user: user) }
|
||||
let(:post) { create_post(topic: topic) }
|
||||
|
||||
let!(:post_reply_key) do
|
||||
Fabricate(:post_reply_key,
|
||||
|
Reference in New Issue
Block a user