mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:48:50 +08:00
FEATURE: allow people to send messages to themselves (for notes etc)
This commit is contained in:
@ -144,8 +144,9 @@ describe Guardian do
|
||||
expect(Guardian.new(user).can_send_private_message?(nil)).to be_falsey
|
||||
end
|
||||
|
||||
it "returns false when the target is the same as the user" do
|
||||
expect(Guardian.new(user).can_send_private_message?(user)).to be_falsey
|
||||
it "returns true when the target is the same as the user" do
|
||||
# this is now allowed so yay
|
||||
expect(Guardian.new(user).can_send_private_message?(user)).to be_truthy
|
||||
end
|
||||
|
||||
it "returns false when you are untrusted" do
|
||||
|
Reference in New Issue
Block a user