[doorkeeper] Attempt to fix oauth connect issues.

This commit is contained in:
Fosco Marotto 2021-01-23 16:18:15 -05:00
parent 588894e2c2
commit 8d09044ee4
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class Api::BaseController < ApplicationController
end end
def authorize_if_got_token!(*scopes) def authorize_if_got_token!(*scopes)
Doorkeeper::AccessToken.connection.stick_to_master!
doorkeeper_authorize!(*scopes) if doorkeeper_token doorkeeper_authorize!(*scopes) if doorkeeper_token
end end