lib/katello/permission_creator.rb in katello-4.14.0.rc3 vs lib/katello/permission_creator.rb in katello-4.14.0
- old
+ new
@@ -49,10 +49,15 @@
:resource_type => 'Katello::ActivationKey',
:finder_scope => :deletable
end
def capsule_content_permissions
+ @plugin.permission :view_smart_proxies,
+ {
+ 'katello/api/v2/capsules' => [:index, :show]
+ },
+ :resource_type => "SmartProxy"
@plugin.permission :manage_capsule_content,
{
'katello/api/v2/capsule_content' => [:add_lifecycle_environment, :remove_lifecycle_environment,
:update_counts, :sync, :reclaim_space, :verify_checksum, :cancel_sync],
'katello/api/v2/capsules' => [:index, :show]
@@ -60,10 +65,10 @@
:resource_type => 'SmartProxy'
@plugin.permission :view_capsule_content,
{
'katello/api/v2/capsule_content' => [:counts, :lifecycle_environments, :available_lifecycle_environments, :sync_status],
- 'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content],
+ 'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content, :index],
'katello/api/v2/capsules' => [:index, :show]
},
:resource_type => "SmartProxy"
end