move check license to action controler

This commit is contained in:
Yan
2018-04-19 16:40:59 +06:30
parent f8a247c61a
commit 1187ddba37
2 changed files with 15 additions and 17 deletions

View File

@@ -53,16 +53,4 @@ module LoginVerification
def render_unauthorized
redirect_to root_path
end
private
def check_license
License.check_license_file
end
def check_installation
if current_company.nil?
redirect_to install_path
end
end
end