提交 ca40479c 编写于 作者: R Robert Schilling

API: Avoid group leak while updating the group

上级 b2f48d8c
......@@ -135,10 +135,10 @@ describe API::API, api: true do
end
context 'when authenticated as an user that cannot see the group' do
it 'returns 403 when trying to update the group' do
it 'returns 404 when trying to update the group' do
put api("/groups/#{group2.id}", user1), name: new_group_name
expect(response.status).to eq(403)
expect(response.status).to eq(404)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册