skip domain filter for api shops index

This commit is contained in:
Thein Lin Kyaw
2020-02-13 16:43:03 +06:30
parent 485a719342
commit bec52b10d5
2 changed files with 23 additions and 6 deletions

View File

@@ -132,9 +132,7 @@ class ActionController::API
# render :json => [{ status: false, message: 'Invalid Access!'}]
end
elsif ENV["SERVER_MODE"] == "application" || (request.subdomains.last && request.subdomains.last != "www")
unless check_license(request.host)
not_found
end
not_found unless check_license(request.host)
else
not_found
end