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

This reverts commit e5ea8fb48779013a2cb67ef5d3bfa1283ff99c5a.
This commit is contained in:
Fosco Marotto 2021-02-20 22:25:59 -05:00
parent fde3821450
commit a2793f04d6

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