From 66a6e5500ce18e6bc2dd6f2d03bbe7aabe11a104 Mon Sep 17 00:00:00 2001 From: Myat Zin Wai Maw Date: Mon, 13 May 2019 09:33:32 +0630 Subject: [PATCH] - --- config/initializers/action_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/initializers/action_controller.rb b/config/initializers/action_controller.rb index 7a123a02..214da8ec 100644 --- a/config/initializers/action_controller.rb +++ b/config/initializers/action_controller.rb @@ -19,12 +19,12 @@ class ActionController::Base render :json => [{ status: false, message: 'Invalid Access!'}] end else - # check for license file - # if check_license - # current_license(ENV["SX_PROVISION_URL"]) - # else - # redirect_to activate_path - # end + check for license file + if check_license + current_license(ENV["SX_PROVISION_URL"]) + else + redirect_to activate_path + end end end