Skip to content

Commit

Permalink
Fixes #37816 - List view_smart_proxies as valid permission for unauth…
Browse files Browse the repository at this point in the history
… message
  • Loading branch information
chris1984 committed Sep 16, 2024
1 parent 24cd3a9 commit 640ef71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/katello/permission_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down

0 comments on commit 640ef71

Please sign in to comment.