diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-15 11:57:09 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-15 11:57:09 +0200 |
commit | 11f87700e8bceeec96440809682406ae24334ed8 (patch) | |
tree | 3f7ec3bc0e00caa728c12b8affade70b75621cc1 /app/controllers/jwt_controller.rb | |
parent | 6b381f3fdf00c7eeb971f365bde2a41f0cecf944 (diff) | |
download | gitlab-ce-11f87700e8bceeec96440809682406ae24334ed8.tar.gz |
Add access specs
Diffstat (limited to 'app/controllers/jwt_controller.rb')
-rw-r--r-- | app/controllers/jwt_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/jwt_controller.rb b/app/controllers/jwt_controller.rb index 7bf534d8732..ed5d28e0d2c 100644 --- a/app/controllers/jwt_controller.rb +++ b/app/controllers/jwt_controller.rb @@ -25,7 +25,7 @@ class JwtController < ApplicationController authenticate_with_http_basic do |login, password| @authentication_result = Gitlab::Auth.find_for_git_client(login, password, ip: request.ip) - render_403 unless @authentication_result.success? + render_403 unless @authentication_result.succeeded? end end |