Skip to content

Commit

Permalink
Show additional features in features tree.
Browse files Browse the repository at this point in the history
Changes to show features in Features tree that do not show up on Menus in Classic UI. Follow up PR for ManageIQ/manageiq#16021
  • Loading branch information
h-kataria committed Sep 25, 2017
1 parent be7f394 commit b61d7e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/presenters/tree_builder_ops_rbac_features.rb
Expand Up @@ -41,7 +41,9 @@ def x_get_tree_roots(count_only = false, _options)
section
end

top_nodes << MiqProductFeature.obj_features["all_vm_rules"][:feature]
%w(all_vm_rules api_exclusive).each do |additional_feature|
top_nodes << MiqProductFeature.obj_features[additional_feature][:feature]
end

count_only_or_objects(count_only, top_nodes)
end
Expand Down
1 change: 1 addition & 0 deletions spec/presenters/tree_builder_ops_rbac_features_spec.rb
Expand Up @@ -2,6 +2,7 @@
let(:features) do
%w(
all_vm_rules
api_exclusive
instance
instance_view
instance_show_list
Expand Down

0 comments on commit b61d7e1

Please sign in to comment.