diff options
author | Horatiu Eugen Vlad <horatiu@vlad.eu> | 2019-04-15 13:05:55 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-04-15 13:05:55 +0000 |
commit | 0aa56d895dba21d3a01b78d35c445107e224ed0c (patch) | |
tree | f97e1d6d289af84b5838db149a9208ae0f70b267 /app/controllers/jwt_controller.rb | |
parent | 922fae29ca100e7f7f30fcb62541305994430779 (diff) | |
download | gitlab-ce-0aa56d895dba21d3a01b78d35c445107e224ed0c.tar.gz |
Added write_repository scope for personal access token
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 f9008a5b67e..49d21456f8e 100644 --- a/app/controllers/jwt_controller.rb +++ b/app/controllers/jwt_controller.rb @@ -22,7 +22,7 @@ class JwtController < ApplicationController private def authenticate_project_or_user - @authentication_result = Gitlab::Auth::Result.new(nil, nil, :none, Gitlab::Auth.read_authentication_abilities) + @authentication_result = Gitlab::Auth::Result.new(nil, nil, :none, Gitlab::Auth.read_only_authentication_abilities) authenticate_with_http_basic do |login, password| @authentication_result = Gitlab::Auth.find_for_git_client(login, password, project: nil, ip: request.ip) |