Merge branch 'develop' into hairlessbear-quest_invite_modal_on_user_sync

This commit is contained in:
Blade Barringer
2015-06-28 21:07:32 -05:00
555 changed files with 15797 additions and 11552 deletions

View File

@@ -540,6 +540,9 @@ UserSchema.pre('save', function(next) {
UserSchema.methods.unlink = function(options, cb) {
var cid = options.cid, keep = options.keep, tid = options.tid;
if (!cid) {
return cb("Could not remove challenge tasks. Please delete them manually.");
}
var self = this;
switch (keep) {
case 'keep':