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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user