feat(block-user): show "blocked" status in an alert, log the user out

This commit is contained in:
Tyler Renelle
2014-07-25 12:13:26 -06:00
parent 6e29facb98
commit a4ae9332bb
3 changed files with 4 additions and 14 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ api.updateHero = function(req,res,next) {
&& User.schema.paths[req.body.itemPath]) {
shared.dotSet(member, req.body.itemPath, req.body.itemVal); // Sanitization at 5c30944 (deemed unnecessary)
}
if (req.body.auth.blocked) member.auth.blocked = req.body.auth.blocked;
if (_.isBoolean(req.body.auth.blocked)) member.auth.blocked = req.body.auth.blocked;
member.save(cb);
}
], function(err, saved){