mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: You should be an admin to do the wizard
This commit is contained in:
parent
8f7a2cb470
commit
7f66cf618c
5 changed files with 8 additions and 4 deletions
|
@ -13,7 +13,7 @@ describe StepsController do
|
|||
end
|
||||
|
||||
it "raises an error if you aren't an admin" do
|
||||
log_in
|
||||
log_in(:moderator)
|
||||
xhr :put, :update, id: 'made-up-id', fields: { forum_title: "updated title" }
|
||||
expect(response).to be_forbidden
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue