From 4b693f165e6b87928f00b5fecc80b0b26c5ef256 Mon Sep 17 00:00:00 2001 From: Thein Lin Kyaw Date: Thu, 13 Feb 2020 16:50:10 +0630 Subject: [PATCH] fix skipping domain filter for api shops index --- app/controllers/api/shops_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/shops_controller.rb b/app/controllers/api/shops_controller.rb index cb7a7f4d..35fe4129 100644 --- a/app/controllers/api/shops_controller.rb +++ b/app/controllers/api/shops_controller.rb @@ -15,7 +15,7 @@ class Api::ShopsController < Api::ApiController end def lookup_domain - unless action_name == "index" + if action_name == "index" if ENV["SERVER_CODE"] == "cloud" && request.subdomains.last && request.subdomains.last != "www" @license = cache_license(ENV["SX_PROVISION_URL"], request.host) # request.subdomain.downcase if (!@license.nil?)