token overrides current user in api
This commit is contained in:
parent
47bca5907e
commit
4b2ecc3fac
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_user
|
def current_user
|
||||||
super || token_user || doorkeeper_user || nil
|
token_user || super || doorkeeper_user || nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_resource
|
def load_resource
|
||||||
|
|
Loading…
Add table
Reference in a new issue