From e5ea8fb48779013a2cb67ef5d3bfa1283ff99c5a Mon Sep 17 00:00:00 2001 From: Developer <> Date: Fri, 19 Feb 2021 22:23:36 -0500 Subject: [PATCH] Updated BaseController to return false if doorkeeper_token nil for superapp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - BaseController to return false if doorkeeper_token nil for superapp --- app/controllers/api/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index e795a948..767f22d7 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -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