Module: ForemanAnsible::Concerns::HostsControllerExtensions::Overrides

Defined in:
app/controllers/foreman_ansible/concerns/hosts_controller_extensions.rb

Overview

Overrides to methods in the original hosts controller

Instance Method Summary collapse

Instance Method Details

#action_permissionObject



13
14
15
16
17
18
19
20
# File 'app/controllers/foreman_ansible/concerns/hosts_controller_extensions.rb', line 13

def action_permission
  case params[:action]
  when 'multiple_play_roles', 'play_roles'
    :view
  else
    super
  end
end