app/controllers/ops_controller/ops_rbac.rb
# Walk the features tree, adding features up to the top
Walk the features tree, adding features up to the top
Walk the features tree adding features up to the top
def rbac_role_add_parent(node)
    return unless (parent = MiqProductFeature.feature_parent(node)) 
    if MiqProductFeature.feature_children(parent, false) - @edit[:new][:features] == []  
      @edit[:new][:features] += [parent]  
      rbac_role_add_parent(parent)        
    end
  end
def rbac_role_add_parent ( node ) return unless ( parent = MiqProductFeature . feature_parent ( node ) ) if MiqProductFeature . feature_children ( parent , false ) - @edit [ :new ] [ :features ] == [ ] @edit [ :new ] [ :features ] += [ parent ] rbac_role_add_parent ( parent ) end end
Walk the features tree, adding features up to the top
Walk the features tree adding features up to the top
# Intentional single =, using parent var below # All siblings of node are selected # Add the parent to the features array # See if this nodes parent needs to be added
node
<not_specific>