Updated BaseController to return false if doorkeeper_token nil for superapp
• Updated: - BaseController to return false if doorkeeper_token nil for superapp
This commit is contained in:
parent
f1a857a7b4
commit
e5ea8fb487
@ -103,7 +103,7 @@ class Api::BaseController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def superapp?
|
def superapp?
|
||||||
return true if doorkeeper_token.nil?
|
return false if doorkeeper_token.nil?
|
||||||
doorkeeper_token && doorkeeper_token.application.superapp? || false
|
doorkeeper_token && doorkeeper_token.application.superapp? || false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user