diff options
author | mortyccp <mortyccp@gmail.com> | 2019-01-03 19:27:00 +0800 |
---|---|---|
committer | mortyccp <mortyccp@gmail.com> | 2019-01-03 20:28:02 +0800 |
commit | 2099578f590c58725d2feb9f064d120ab8b4e068 (patch) | |
tree | bc35aa1846f7fa581b088f6641b97203a6dbc3d8 /lib | |
parent | 0e061adfcb880c3eac58630400c0cf647f247bd3 (diff) | |
download | gitlab-ce-2099578f590c58725d2feb9f064d120ab8b4e068.tar.gz |
Revert changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/auth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb index fa3399b64f5..7aa02009aa0 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -169,7 +169,6 @@ module Gitlab AccessTokenValidationService.new(token).include_any_scope?(scopes) end - # rubocop: disable CodeReuse/ActiveRecord def abilities_for_scopes(scopes) abilities_by_scope = { api: full_authentication_abilities, @@ -182,6 +181,7 @@ module Gitlab end.uniq end + # rubocop: disable CodeReuse/ActiveRecord def deploy_token_check(login, password) return unless password.present? |