Sha256: 6ace18c721d5a238df87b27617beb1946bf21d358c9f0183127a714a2290c142

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

require 'katello/plugin.rb'

Foreman::Plugin.find(:katello).security_block :content_hosts do
  permission :view_content_hosts,
             {
               'katello/content_hosts' => [:auto_complete_search],
               'katello/api/v2/systems' => [:index, :show, :errata, :package_profile, :product_content,
                                            :report, :releases, :available_host_collections],
               'katello/api/v2/host_collections' => [:systems]
             },
             :resource_type => 'Katello::System'
  permission :create_content_hosts,
             {
               'katello/api/v2/systems' => [:create],
               'katello/api/rhsm/candlepin_proxies' => [:consumer_create, :consumer_show]
             },
             :resource_type => 'Katello::System'
  permission :edit_content_hosts,
             {
               'katello/api/v2/systems' => [:update, :content_override],
               'katello/api/rhsm/candlepin_proxies' => [:upload_package_profile, :regenerate_identity_certificates,
                                                        :hypervisors_update]
             },
             :resource_type => 'Katello::System'
  permission :destroy_content_hosts,
             {
               'katello/api/v2/systems' => [:destroy]
             },
             :resource_type => 'Katello::System'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katello-3.1.0.1 lib/katello/permissions/content_host_permissions.rb
katello-3.1.0 lib/katello/permissions/content_host_permissions.rb
katello-3.1.0.rc2.1 lib/katello/permissions/content_host_permissions.rb
katello-3.1.0.rc1 lib/katello/permissions/content_host_permissions.rb