Revert "Updated BaseController to return false if doorkeeper_token nil for superapp"

This reverts commit e5ea8fb487.
This commit is contained in:
Fosco Marotto 2021-02-20 22:25:59 -05:00
parent fde3821450
commit a2793f04d6
1 changed files with 1 additions and 1 deletions

View File

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