From ddf0636e7e070119090a8fd848cc3d4fb633e2e4 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 1 Apr 2014 23:16:50 -0700 Subject: [PATCH] Revert logic for deleting model properties that interfered with signup. --- server/commons/Handler.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/commons/Handler.coffee b/server/commons/Handler.coffee index d026ea54f..f38885fd9 100644 --- a/server/commons/Handler.coffee +++ b/server/commons/Handler.coffee @@ -311,8 +311,9 @@ module.exports = class Handler for prop in @getEditableProperties req, document if (val = req.body[prop])? document.set prop, val - else if document.get(prop)? and req.method isnt 'PATCH' - document.set prop, 'undefined' + # Hold on, gotta think about that one + #else if document.get(prop)? and req.method isnt 'PATCH' + # document.set prop, 'undefined' obj = document.toObject() # Hack to get saving of Users to work. Probably should replace these props with strings