Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-22 12:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-22 12:09:20 +0300
commite9a834ee298801dec92de77783fffa0cea9deb34 (patch)
treed425f2e96ce226ff80b1f6ef5f4efc2c57f73520 /lib/gitlab/middleware
parent054cda9ea6511f78169201c2bc12ee25dcb74ab0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/middleware')
-rw-r--r--lib/gitlab/middleware/go.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/middleware/go.rb b/lib/gitlab/middleware/go.rb
index a1a0356ff58..bfa4e4cf5f8 100644
--- a/lib/gitlab/middleware/go.rb
+++ b/lib/gitlab/middleware/go.rb
@@ -27,6 +27,8 @@ module Gitlab
path: request.fullpath
)
Rack::Response.new('', 403).finish
+ rescue Gitlab::Auth::MissingPersonalAccessTokenError
+ Rack::Response.new('', 401).finish
end
private