Sha256: ee2e7048c548cef62035e1d2e1b854e6f74343915d3320008073e887c67a3b53

Contents?: true

Size: 1.14 KB

Versions: 30

Compression:

Stored size: 1.14 KB

Contents

require 'katello/plugin.rb'

Foreman::Plugin.find(:katello).security_block :lifecycle_environments do
  permission :view_lifecycle_environments,
             {
               'katello/api/v2/environments' => [:index, :show, :paths, :repositories],
               'katello/api/rhsm/candlepin_proxies' => [:rhsm_index],
               'katello/environments' => [:auto_complete_search]
             },
             :resource_type => 'Katello::KTEnvironment'
  permission :create_lifecycle_environments,
             {
               'katello/api/v2/environments' => [:create]
             },
             :resource_type => 'Katello::KTEnvironment'
  permission :edit_lifecycle_environments,
             {
               'katello/api/v2/environments' => [:update]
             },
             :resource_type => 'Katello::KTEnvironment'
  permission :destroy_lifecycle_environments,
             {
               'katello/api/v2/environments' => [:destroy]
             },
             :resource_type => 'Katello::KTEnvironment'

  permission :promote_or_remove_content_views_to_environments,
             {},
             :resource_type => 'Katello::KTEnvironment'
end

Version data entries

30 entries across 30 versions & 1 rubygems

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