[doorkeeper] Attempt to fix oauth connect issues.
This commit is contained in:
parent
588894e2c2
commit
8d09044ee4
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue