app/controllers/ops_controller/ops_rbac.rb
# Get array of total set of features from the children of selected features
Get array of total set of features from the children of selected features
Get array of total set of features from the children of selected features
def rbac_expand_features(ids, node) 
    if ids.include?(node)   
      return [node] + MiqProductFeature.feature_all_children(node)
    else                    
      MiqProductFeature.feature_children(node).flat_map { |n| rbac_expand_features(ids, n) }
    end
  end
def rbac_expand_features ( ids , node ) if ids . include? ( node ) return [ node ] + MiqProductFeature . feature_all_children ( node ) else MiqProductFeature . feature_children ( node ) . flat_map { | n | rbac_expand_features ( ids , n ) } end end
Get array of total set of features from the children of selected features
Get array of total set of features from the children of selected features
# Selected IDS and node to check # This node is selected, return all children # Node is not selected, check this nodes direct children
ids
<not_specific>
node
<not_specific>