From e0fa0638a422c3e20d4423c9bb69d79afc9c7d3d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 27 Feb 2020 18:09:21 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/gitlab/checks/snippet_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/checks') diff --git a/lib/gitlab/checks/snippet_check.rb b/lib/gitlab/checks/snippet_check.rb index 26dd772764a..be25fe3e7c4 100644 --- a/lib/gitlab/checks/snippet_check.rb +++ b/lib/gitlab/checks/snippet_check.rb @@ -21,7 +21,7 @@ module Gitlab def exec if creation? || deletion? - raise GitAccess::UnauthorizedError, ERROR_MESSAGES[:create_delete_branch] + raise GitAccess::ForbiddenError, ERROR_MESSAGES[:create_delete_branch] end # TODO: https://gitlab.com/gitlab-org/gitlab/issues/205628 -- cgit v1.2.3