Class: Anoubis::Core::IndexController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Anoubis::Core::IndexController
- Defined in:
- app/controllers/anoubis/core/index_controller.rb
Overview
Controller processes main system functions. Authenticates user, checks user access, outputs main menu and etc.
Instance Attribute Summary
Attributes inherited from ApplicationController
#current_user, #etc, #exports, #locale, #output, #version, #writer
Instance Method Summary collapse
-
#authenticate? ⇒ Boolean
Check if authentication required.
-
#check_menu_access? ⇒ Boolean
Check if authentication required.
Methods included from Anoubis::Core::Index::Callbacks
#around_menu_output, #before_menu_output
Methods included from Anoubis::Core::Index::Actions
Methods inherited from ApplicationController
#access_allowed?, #after_initialization, #anubis_core_initialization, #authentication, #bin_to_uuid, #default_locale, #error_exit, #get_user_model, #get_user_model_except, #menu_access, #new_session_id, #new_uuid, #options, #redis, #redis_prefix, #redis_save_user, #set_access_control_headers, #token, #uuid_to_bin
Instance Method Details
#authenticate? ⇒ Boolean
Check if authentication required
15 16 17 18 19 20 21 22 |
# File 'app/controllers/anoubis/core/index_controller.rb', line 15 def authenticate? if controller_name == 'index' if action_name == 'login' return false end end return true end |
#check_menu_access? ⇒ Boolean
Check if authentication required
26 27 28 29 30 31 32 33 |
# File 'app/controllers/anoubis/core/index_controller.rb', line 26 def if controller_name == 'index' if action_name == 'login' || action_name == 'menu' || action_name == 'logout' return false end end return true end |