summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 06:09:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 06:09:25 +0000
commit3d064c737e8448880e6180aeddc59000a01aa6a8 (patch)
treec97dcfe02e48426f96865068ffe8dcdd17bb1a96 /lib/api
parent7ba5b9babaa5802c39e686c57cbf4a3f4725c4b0 (diff)
downloadgitlab-ce-3d064c737e8448880e6180aeddc59000a01aa6a8.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/internal/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal/base.rb b/lib/api/internal/base.rb
index 9c37b610cca..927639599d2 100644
--- a/lib/api/internal/base.rb
+++ b/lib/api/internal/base.rb
@@ -109,7 +109,7 @@ module API
# group resources based on its IP restrictions
post "/allowed" do
if repo_type.snippet? && Feature.disabled?(:version_snippets, actor.user)
- break response_with_status(code: 404, success: false, message: 'The project you were looking for could not be found.')
+ break response_with_status(code: 401, success: false, message: 'Snippet git access is disabled.')
end
# It was moved to a separate method so that EE can alter its behaviour more