app/controllers/ops_controller/ops_rbac.rb
# Validate some of the user fields
Validate some of the user fields
Validate some of the user fields
def rbac_user_validate?
    valid = true
    if @edit[:new][:password] != @edit[:new][:verify]
      add_flash(_("Password/Verify Password do not match"), :error)
      valid = false
    end
    if @edit[:new][:group].blank?
      add_flash(_("A User must be assigned to a Group"), :error)
      valid = false
    end
    valid
  end
def rbac_user_validate? valid = true if @edit [ :new ] [ :password ] != @edit [ :new ] [ :verify ] add_flash ( _ ( "Password/Verify Password do not match" ) , :error ) valid = false end if @edit [ :new ] [ :group ] . blank? add_flash ( _ ( "A User must be assigned to a Group" ) , :error ) valid = false end valid end
Validate some of the user fields
Validate some of the user fields