diff options
| author | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-01-29 15:58:44 -0600 |
|---|---|---|
| committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-02-01 17:28:28 -0600 |
| commit | cc7e52740152bbacd40b383b7e872c4bc6cd38ce (patch) | |
| tree | 273152ade8eead5277154fcef62398aec8b7a748 /app/services/auth/container_registry_authentication_service.rb | |
| parent | f016c780f658cebedfb4ffd31ecf37b07139cdef (diff) | |
| download | gitlab-ce-cc7e52740152bbacd40b383b7e872c4bc6cd38ce.tar.gz | |
use Gitlab::UserSettings directly instead of including/extending it
Diffstat (limited to 'app/services/auth/container_registry_authentication_service.rb')
| -rw-r--r-- | app/services/auth/container_registry_authentication_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb index f40cd2b06c8..2b77f6be72a 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -1,7 +1,5 @@ module Auth class ContainerRegistryAuthenticationService < BaseService - extend Gitlab::CurrentSettings - AUDIENCE = 'container_registry'.freeze def execute(authentication_abilities:) @@ -32,7 +30,7 @@ module Auth end def self.token_expire_at - Time.now + current_application_settings.container_registry_token_expire_delay.minutes + Time.now + Gitlab::CurrentSettings.container_registry_token_expire_delay.minutes end private |
