Sha256: abca97e965210d6c727b9289e992632e3eb748a7dc841fade3622d1183232378
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require_dependency "anubis/tenant/application_controller" require_dependency "anubis/tenant/index/actions" require_dependency "anubis/tenant/index/callbacks" module Anubis ## # 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 < Anubis::Tenant::ApplicationController include Anubis::Tenant::Index::Actions include Anubis::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.0 | app/controllers/anoubis/tenant/index_controller.rb |