From 4dee68b46f421add0853eef72f326cd8305b10fe Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 12 Sep 2024 15:56:51 -0400 Subject: [PATCH] Fixes #37816 - List view_smart_proxies as valid permission for unauth message (cherry picked from commit 640ef71793eeb22d24886e936fede46498632ae6) --- lib/katello/permission_creator.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/katello/permission_creator.rb b/lib/katello/permission_creator.rb index ba495a186e1..d24dd4cf420 100644 --- a/lib/katello/permission_creator.rb +++ b/lib/katello/permission_creator.rb @@ -51,6 +51,11 @@ def activation_keys_permissions 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, @@ -62,7 +67,7 @@ def capsule_content_permissions @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"