Sha256: 64eef2f638edafdb744441607a4871caedfabc9f1196647105923fba40a6dac1
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require_dependency "anubis/tenant/application_controller" require_dependency "anubis/tenant/index/actions" require_dependency "anubis/tenant/index/callbacks" module Anoubis ## # Module presents all tenant functions for Anubis Library module Tenant ## # Controller processes main system functions. Authenticates user, checks user access, outputs main menu and etc. class IndexController < Anoubis::Tenant::ApplicationController include Anoubis::Tenant::Index::Actions include Anoubis::Tenant::Index::Callbacks ## # Check if authentication required def authenticate? if controller_name == 'index' if action_name == 'login' return false end end return true end ## # Check if authentication required def check_menu_access? if controller_name == 'index' if action_name == 'login' || action_name == 'menu' || action_name == 'logout' return false end end return true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anoubis-1.0.1 | app/controllers/anoubis/tenant/index_controller.rb |