app/controllers/ops_controller/ops_rbac.rb
# Set user record variables to new values
Set user record variables to new values
Set user record variables to new values
def rbac_user_set_record_vars(user)
    user.name       = @edit[:new][:name]
    user.userid     = @edit[:new][:userid]
    user.email      = @edit[:new][:email]
    user.miq_groups = [MiqGroup.find_by_id(@edit[:new][:group])].compact
    user.password   = @edit[:new][:password] if @edit[:new][:password]
  end
def rbac_user_set_record_vars ( user ) user . name = @edit [ :new ] [ :name ] user . userid = @edit [ :new ] [ :userid ] user . email = @edit [ :new ] [ :email ] user . miq_groups = [ MiqGroup . find_by_id ( @edit [ :new ] [ :group ] ) ] . compact user . password = @edit [ :new ] [ :password ] if @edit [ :new ] [ :password ] end
Set user record variables to new values
Set user record variables to new values
user
<not_specific>