Commit 6be49303 authored by Yorick Peterse's avatar Yorick Peterse

Accessing unauthorized groups now returns a 404

parent 788b0f89
......@@ -249,7 +249,7 @@ describe API::API, api: true do
context "when authenticated as user without group permissions" do
it "should not create group" do
put api("/groups/#{group2.id}", user1), attributes_for(:group)
expect(response.status).to eq(403)
expect(response.status).to eq(404)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment