app/controllers/ops_controller/ops_rbac.rb
# Get array of all fully selected parent or leaf node features
Get array of all fully selected parent or leaf node features
Get array of all fully selected parent or leaf node features
def rbac_compact_features(ids, node)  
    return [node] if ids.include?(node) 
    MiqProductFeature.feature_children(node, false).flat_map do |n|
      rbac_compact_features(ids, n)
    end
  end
def rbac_compact_features ( ids , node ) return [ node ] if ids . include? ( node ) MiqProductFeature . feature_children ( node , false ) . flat_map do | n | rbac_compact_features ( ids , n ) end end
Get array of all fully selected parent or leaf node features
Get array of all fully selected parent or leaf node features
# Selected IDS and node to check # This feature is selected, return this node
ids
<not_specific>
node
<not_specific>