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:
Developer 2021-02-19 22:23:36 -05:00
parent f1a857a7b4
commit e5ea8fb487

View File

@ -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