Sha256: 742947db5c83c8f8bfa67767613526a78a5a9cdd29a6fdca90f55b6eaa06bb28

Contents?: true

Size: 913 Bytes

Versions: 16

Compression:

Stored size: 913 Bytes

Contents

require 'katello/plugin.rb'

Foreman::Plugin.find(:katello).security_block :sync_plans do
  permission :view_sync_plans,
             {
               'katello/api/v2/sync_plans' => [:index, :show, :add_products, :remove_products, :available_products, :auto_complete_search],
               'katello/api/v2/products' => [:index]
             },
             :resource_type => 'Katello::SyncPlan'
  permission :create_sync_plans,
             {
               'katello/api/v2/sync_plans' => [:create]
             },
             :resource_type => 'Katello::SyncPlan'
  permission :edit_sync_plans,
             {
               'katello/api/v2/sync_plans' => [:update]
             },
             :resource_type => 'Katello::SyncPlan'
  permission :destroy_sync_plans,
             {
               'katello/api/v2/sync_plans' => [:destroy]
             },
             :resource_type => 'Katello::SyncPlan'
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
katello-3.4.4 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.2 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.0.2 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.0.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.2 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.0 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.0.rc2 lib/katello/permissions/sync_plan_permissions.rb
katello-3.4.0.rc1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.1.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.0.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.0 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.0.rc2 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.0.rc1.1 lib/katello/permissions/sync_plan_permissions.rb
katello-3.3.0.rc1 lib/katello/permissions/sync_plan_permissions.rb