Commit ea032a52 authored by Timothy Andrew's avatar Timothy Andrew

EE-specific changes related to gitlab-org/gitlab-ce!5951.

The CE merge request renamed the `Oauth2::AccessTokenValidationService` and
converted it from a module to a class. There are two invocations of this
module/class that are EE-only, which needed to be updated.
parent 9be9072d
...@@ -9,9 +9,9 @@ module Oauth2 ...@@ -9,9 +9,9 @@ module Oauth2
def execute def execute
return error('access token not found') unless access_token return error('access token not found') unless access_token
status = Oauth2::AccessTokenValidationService.validate(access_token) status = AccessTokenValidationService.new(access_token).validate
if status == Oauth2::AccessTokenValidationService::VALID if status == AccessTokenValidationService::VALID
user = User.find(access_token.resource_owner_id) user = User.find(access_token.resource_owner_id)
if current_user == user if current_user == user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment