update license

This commit is contained in:
Aung Myo
2018-03-05 13:53:25 +06:30
parent 4bb597cb9d
commit 2c1f599990
4 changed files with 10 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
class ActionController::Base
before_action :lookup_domain, :set_locale
private
@@ -21,11 +20,11 @@ class ActionController::Base
end
else
# check for license file
# if check_license
# current_license(ENV["SX_PROVISION_URL"])
# else
# redirect_to activate_path
# end
if check_license
current_license(ENV["SX_PROVISION_URL"])
else
redirect_to activate_path
end
end
end