summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 17:12:45 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 17:12:45 -0500
commit23d1c454108d50bbb1795b0a5855ee7ae9024e3c (patch)
treeba87cfbd93836ab3685e0762d39a9dbc544c1968 /app/services
parente3e392965ee16f79a80b0f8517ff8c9e445bb907 (diff)
downloadgitlab-ce-23d1c454108d50bbb1795b0a5855ee7ae9024e3c.tar.gz
Fix 401 message
Diffstat (limited to 'app/services')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index 169e0387e85..3144e96ba31 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -6,7 +6,7 @@ module Auth
return error('not found', 404) unless registry.enabled
if params[:offline_token]
- return error('forbidden', 401) unless current_user
+ return error('unauthorized', 401) unless current_user
else
return error('forbidden', 403) unless scope
end