Sha256: 34e26b898eb0ee7cbdf9e54fbcdbc6f759879f0f020dd8d270d03837696e86ec

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

require 'katello/plugin.rb'

Foreman::Plugin.find(:katello).security_block :host_collections do
  permission :view_host_collections,
             {
               'katello/api/v2/host_collections' => [:index, :show],
               'katello/dashboard' => [:host_collections],
               'katello/host_collections' => [:auto_complete_search]
             },
             :resource_type => 'Katello::HostCollection'
  permission :create_host_collections,
             {
               'katello/api/v2/host_collections' => [:create, :copy]
             },
             :resource_type => 'Katello::HostCollection'
  permission :edit_host_collections,
             {
               'katello/api/v2/host_collections' => [:update, :add_systems, :remove_systems]
             },
             :resource_type => 'Katello::HostCollection'
  permission :destroy_host_collections,
             {
               'katello/api/v2/host_collections' => [:destroy]
             },
             :resource_type => 'Katello::HostCollection'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
katello-2.2.2 lib/katello/permissions/host_collections_permissions.rb