From a2793f04d6600dd9d4850adcc8db93c4fc7de505 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 20 Feb 2021 22:25:59 -0500 Subject: [PATCH] Revert "Updated BaseController to return false if doorkeeper_token nil for superapp" This reverts commit e5ea8fb48779013a2cb67ef5d3bfa1283ff99c5a. --- 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 767f22d7..e795a948 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 false if doorkeeper_token.nil? + return true if doorkeeper_token.nil? doorkeeper_token && doorkeeper_token.application.superapp? || false end