diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-04 17:04:04 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-05 10:29:27 +0200 |
commit | 491e1fc905ef52dcc2e7df7deabd3c1f6e42aa52 (patch) | |
tree | 74e4732b0f66f2a6828740278c1914cd4faa0869 /spec/controllers/search_controller_spec.rb | |
parent | 04236363bce399fbde36f396fdcf51d61735e1b0 (diff) | |
download | gitlab-ce-491e1fc905ef52dcc2e7df7deabd3c1f6e42aa52.tar.gz |
Render a 403 when showing an access denied messagebvl-403-for-external-auth-service-ce
When we want to show an access denied message to a user, we don't have
to hide the resource's existence.
So in that case we render a 403, this 403 is not handled by nginx on
omnibus installs, making sure the message is visible to the user.
Diffstat (limited to 'spec/controllers/search_controller_spec.rb')
-rw-r--r-- | spec/controllers/search_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb index 30c06ddf744..416a09e1684 100644 --- a/spec/controllers/search_controller_spec.rb +++ b/spec/controllers/search_controller_spec.rb @@ -32,7 +32,7 @@ describe SearchController do it 'still blocks searches without a project_id' do get :show, search: 'hello' - expect(response).to have_gitlab_http_status(404) + expect(response).to have_gitlab_http_status(403) end it 'allows searches with a project_id' do |