lib/katello/permission_creator.rb in katello-3.5.2 vs lib/katello/permission_creator.rb in katello-3.6.0.rc1

- old
+ new

@@ -70,13 +70,13 @@ 'katello/api/v2/content_view_filter_rules' => [:index, :show], 'katello/api/v2/content_view_histories' => [:index, :auto_complete_search], 'katello/api/v2/content_view_puppet_modules' => [:index, :show, :auto_complete_search], 'katello/api/v2/content_view_versions' => [:index, :show, :auto_complete_search], 'katello/api/v2/content_view_components' => [:index, :show], - 'katello/api/v2/package_groups' => [:index, :show], - 'katello/api/v2/errata' => [:index, :show], - 'katello/api/v2/puppet_modules' => [:index, :show], + 'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search, :compare], + 'katello/api/v2/errata' => [:index, :show, :auto_complete_search, :compare, :available_errata], + 'katello/api/v2/puppet_modules' => [:index, :show, :auto_complete_search, :compare], 'katello/content_views' => [:auto_complete, :auto_complete_search], 'katello/errata' => [:short_details, :auto_complete], 'katello/packages' => [:details, :auto_complete], 'katello/products' => [:auto_complete], 'katello/repositories' => [:auto_complete_library], @@ -143,21 +143,21 @@ end def gpg_key_permissions @plugin.permission :view_gpg_keys, { - 'katello/api/v2/gpg_keys' => [:index, :show, :auto_complete_search] + 'katello/api/v2/gpg_keys' => [:index, :show, :content, :auto_complete_search] }, :resource_type => 'Katello::GpgKey' @plugin.permission :create_gpg_keys, { 'katello/api/v2/gpg_keys' => [:create] }, :resource_type => 'Katello::GpgKey' @plugin.permission :edit_gpg_keys, { - 'katello/api/v2/gpg_keys' => [:update, :content] + 'katello/api/v2/gpg_keys' => [:update, :set_content] }, :resource_type => 'Katello::GpgKey' @plugin.permission :destroy_gpg_keys, { 'katello/api/v2/gpg_keys' => [:destroy] @@ -220,17 +220,19 @@ @plugin.permission :view_products, { 'katello/products' => [:auto_complete, :auto_complete_search], 'katello/api/v2/products' => [:index, :show, :auto_complete_search], 'katello/api/v2/repositories' => [:index, :show, :repository_types, :auto_complete_search, :cancel], - 'katello/api/v2/packages' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch], - 'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search], - 'katello/api/v2/docker_manifests' => [:index, :show, :auto_complete_search], - 'katello/api/v2/docker_tags' => [:index, :show, :auto_complete_search, :auto_complete_name], - 'katello/api/v2/file_units' => [:index, :show, :auto_complete_search], - 'katello/api/v2/ostree_branches' => [:index, :show, :auto_complete_search], + 'katello/api/v2/packages' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch, :compare], + 'katello/api/v2/debs' => [:index, :show, :auto_complete_search], + 'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search, :compare], + 'katello/api/v2/docker_manifests' => [:index, :show, :auto_complete_search, :compare], + 'katello/api/v2/docker_manifest_lists' => [:index, :show, :auto_complete_search, :compare], + 'katello/api/v2/docker_tags' => [:index, :show, :auto_complete_search, :auto_complete_name, :compare], + 'katello/api/v2/file_units' => [:index, :show, :auto_complete_search, :compare], + 'katello/api/v2/ostree_branches' => [:index, :show, :auto_complete_search, :compare], 'katello/api/v2/errata' => [:index, :show, :auto_complete_search, :compare], - 'katello/api/v2/puppet_modules' => [:index, :show, :auto_complete_search], + 'katello/api/v2/puppet_modules' => [:index, :show, :auto_complete_search, :compare], 'katello/errata' => [:short_details, :auto_complete], 'katello/packages' => [:details, :auto_complete], 'katello/puppet_modules' => [:show], 'katello/files' => [:auto_complete], 'katello/repositories' => [:auto_complete_library, :repository_types],