From 3d064c737e8448880e6180aeddc59000a01aa6a8 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 7 Apr 2020 06:09:25 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/api/internal/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api') 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 -- cgit v1.2.1