Sha256: 30e4666b7fcffa5cdc2f2ffc86d07c230bcca8f30d62ef25cb5e1dd62c66840b

Contents?: true

Size: 1.04 KB

Versions: 26

Compression:

Stored size: 1.04 KB

Contents

require 'katello/plugin.rb'

Foreman::Plugin.find(:katello).security_block :activation_keys do
  permission :view_activation_keys,
             {
               'katello/activation_keys' => [:all, :index, :auto_complete_search],
               'katello/api/v2/activation_keys' => [:index, :show, :available_host_collections, :available_releases, :product_content]
             },
             :resource_type => 'Katello::ActivationKey'
  permission :create_activation_keys,
             {
               'katello/api/v2/activation_keys' => [:create, :copy]
             },
             :resource_type => 'Katello::ActivationKey'
  permission :edit_activation_keys,
             {
               'katello/api/v2/activation_keys' => [:update, :content_override, :add_subscriptions, :remove_subscriptions]
             },
             :resource_type => 'Katello::ActivationKey'
  permission :destroy_activation_keys,
             {
               'katello/api/v2/activation_keys' => [:destroy]
             },
             :resource_type => 'Katello::ActivationKey'
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
katello-3.2.0.rc2 lib/katello/permissions/activation_key_permissions.rb
katello-3.2.0.rc1.1 lib/katello/permissions/activation_key_permissions.rb
katello-3.2.0.rc1 lib/katello/permissions/activation_key_permissions.rb
katello-3.1.0.1 lib/katello/permissions/activation_key_permissions.rb
katello-3.1.0 lib/katello/permissions/activation_key_permissions.rb
katello-3.1.0.rc2.1 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.2 lib/katello/permissions/activation_key_permissions.rb
katello-2.4.5 lib/katello/permissions/activation_key_permissions.rb
katello-3.1.0.rc1 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.1 lib/katello/permissions/activation_key_permissions.rb
katello-2.4.4 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0 lib/katello/permissions/activation_key_permissions.rb
katello-2.4.3 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc7 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc5 lib/katello/permissions/activation_key_permissions.rb
katello-2.4.2 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc4 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc3 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc2 lib/katello/permissions/activation_key_permissions.rb
katello-3.0.0.rc1 lib/katello/permissions/activation_key_permissions.rb