mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
fix spec, I don't agree with allowing mods and staff to edit this
This commit is contained in:
parent
0e5ab97a87
commit
347aa343b0
1 changed files with 4 additions and 4 deletions
|
@ -1687,12 +1687,12 @@ describe Guardian do
|
|||
Guardian.new(user).can_edit_email?(user).should be_false
|
||||
end
|
||||
|
||||
it "is true for admins" do
|
||||
Guardian.new(admin).can_edit_email?(user).should be_true
|
||||
it "is false for admins" do
|
||||
Guardian.new(admin).can_edit_email?(user).should be_false
|
||||
end
|
||||
|
||||
it "is true for moderators" do
|
||||
Guardian.new(moderator).can_edit_email?(user).should be_true
|
||||
it "is false for moderators" do
|
||||
Guardian.new(moderator).can_edit_email?(user).should be_false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue