module ZuoraConnect::Controllers::Helpers
def check_instance
def check_instance if !@appinstance.blank? @appinstance.new_session(:session => @appinstance.data_lookup(:session => session)) Thread.current[:appinstance] = @appinstance return @appinstance.valid else render text: "Access Denied", status: :unauthorized end end