mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:22:20 +08:00
FIX: You should be an admin to do the wizard
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user