lib/katello/plugin.rb in katello-3.4.4 vs lib/katello/plugin.rb in katello-3.4.5

- old
+ new

@@ -1,7 +1,9 @@ +require 'katello/permission_creator' + Foreman::Plugin.register :katello do - requires_foreman '>= 1.14' + requires_foreman '>= 1.15' sub_menu :top_menu, :content_menu, :caption => N_('Content'), :after => :monitor_menu do menu :top_menu, :environments, :caption => N_('Lifecycle Environments'), @@ -251,6 +253,9 @@ add_controller_action_scope(Api::V2::HostsController, :index) do |base_scope| base_scope .preload(:content_view, :lifecycle_environment, :subscription_facet) .preload(content_facet: [:bound_repositories, :content_view, :lifecycle_environment]) end + + Katello::PermissionCreator.new(self).define + add_all_permissions_to_default_roles end