Module: ForemanSpacewalk::HostsHelperExt::Overrides

Defined in:
app/helpers/concerns/foreman_spacewalk/hosts_helper_ext.rb

Instance Method Summary collapse

Instance Method Details

#multiple_actionsObject



6
7
8
9
10
11
12
13
14
# File 'app/helpers/concerns/foreman_spacewalk/hosts_helper_ext.rb', line 6

def multiple_actions
  spacewalk_multiple_actions = []
  if authorized_for(controller: :hosts, action: :select_multiple_downtime)
    spacewalk_multiple_actions << [
      _('Change Spacewalk Proxy'), select_multiple_spacewalk_proxy_hosts_path
    ]
  end
  super + spacewalk_multiple_actions
end