foreman_hosts 2.0.4.2 → 2.0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/foreman_hosts/engine.rb +4 -8
- data/lib/foreman_hosts/version.rb +1 -1
- metadata +1 -1
data/lib/foreman_hosts/engine.rb
CHANGED
@@ -11,7 +11,7 @@ module ForemanHosts
|
|
11
11
|
|
12
12
|
# Add any db migrations
|
13
13
|
initializer 'foreman_hosts.load_app_instance_data' do |app|
|
14
|
-
app.config.paths['db/migrate'] += ForemanHosts::Engine.paths['db/migrate'].existent
|
14
|
+
#app.config.paths['db/migrate'] += ForemanHosts::Engine.paths['db/migrate'].existent
|
15
15
|
end
|
16
16
|
|
17
17
|
initializer 'foreman_hosts.register_plugin', after: :finisher_hook do |_app|
|
@@ -21,19 +21,15 @@ module ForemanHosts
|
|
21
21
|
# Add permissions
|
22
22
|
security_block :foreman_hosts do
|
23
23
|
permission :view_foreman_hosts, :'foreman_hosts/hosts' => [:report_index]
|
24
|
-
# permission :view_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:index, :show]
|
25
|
-
# permission :new_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:new, :create]
|
26
|
-
# permission :edit_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:edit, :update]
|
27
|
-
# permission :delete_foreman_syhostmodels, :'foreman_hosts/syhostmodels' => [:destroy]
|
28
24
|
end
|
29
25
|
|
30
26
|
# Add a new role called 'Discovery' if it doesn't exist
|
31
|
-
role 'ForemanHosts', [:view_foreman_hosts
|
27
|
+
role 'ForemanHosts', [:view_foreman_hosts]
|
28
|
+
|
32
29
|
# add menu entry
|
33
30
|
|
34
31
|
sub_menu :top_menu, :export_menu, :caption=> N_('Export'), :after=> :infrastructure_menu do
|
35
|
-
|
36
|
-
menu :top_menu, :level2, :caption=>N_('ExportHosts'), :url_hash => { :controller => 'foreman_hosts/hosts', :action => :report_index }
|
32
|
+
menu :top_menu, :level1, :caption=>N_('ExportHosts'), :url_hash => { :controller => 'foreman_hosts/hosts', :action => :report_index }
|
37
33
|
# menu :top_menu, :level2, :url_hash => {:controller=> :example, :action=>:index}
|
38
34
|
# menu :top_menu, :level3, :url_hash => {:controller=> :example, :action=>:index}
|
39
35
|
# sub_menu :top_menu, :inner_level, :caption=> N_('Inner level') do
|