Module: Api::V2::HostsControllerExtensions::Overrides

Defined in:
app/controllers/concerns/foreman_openscap/api/v2/hosts_controller_extensions.rb

Instance Method Summary collapse

Instance Method Details

#action_permissionObject



6
7
8
9
10
11
12
13
# File 'app/controllers/concerns/foreman_openscap/api/v2/hosts_controller_extensions.rb', line 6

def action_permission
  case params[:action]
  when 'policies_enc'
    'view'
  else
    super
  end
end