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
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Api::BaseController < ApplicationController
end
def superapp?
return true if doorkeeper_token.nil?
return false if doorkeeper_token.nil?
doorkeeper_token && doorkeeper_token.application.superapp? || false
end