lib/katello/plugin.rb in katello-3.15.3.1 vs lib/katello/plugin.rb in katello-3.16.0.rc1

- old
+ new

@@ -207,10 +207,19 @@ :engine => Katello::Engine, :parent => :hosts_menu, :after => :content_hosts, :turbolinks => false + menu :labs_menu, + :content_publication, + :url => '/labs/content_views', + :url_hash => {:controller => 'katello/react', + :action => 'index'}, + :caption => N_('Content Views'), + :parent => :lab_features_menu, + :turbolinks => false + allowed_template_helpers :subscription_manager_configuration_url, :repository_url extend_template_helpers Katello::KatelloUrlsHelper register_global_js_file 'fills' search_path_override("Katello") do |resource| @@ -333,12 +342,12 @@ medium_providers.register(Katello::ManagedContentMediumProvider) Katello::PermissionCreator.new(self).define add_all_permissions_to_default_roles - - add_permissions_to_default_roles 'System admin' => [:create_lifecycle_environments, :create_content_views] - + unless Rails.env.test? + add_permissions_to_default_roles 'System admin' => [:create_lifecycle_environments, :create_content_views] + end role 'Register hosts', [ :view_hostgroups, :view_activation_keys, :view_hosts, :create_hosts, :edit_hosts, :destroy_hosts, :view_content_views, :view_gpg_keys, :view_subscriptions, :attach_subscriptions, :view_host_collections,