diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-15 10:47:38 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-15 10:47:38 -0500 |
commit | bc32a3ecc7ec2e5ebf6e8c9d9fc1b218a3620f36 (patch) | |
tree | acf1e7c8f30fb9a454d59252119f124ac0eda747 /app/services | |
parent | 28ed9907047dd07089833d5b7bb8cd800e0ddff6 (diff) | |
download | gitlab-ce-bc32a3ecc7ec2e5ebf6e8c9d9fc1b218a3620f36.tar.gz |
Fix offline_token http_status code
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/auth/container_registry_authentication_service.rb | 2 |
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 72d28af7f7d..b636f55d031 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('forbidden', 403) unless current_user else return error('forbidden', 403) unless scope end |