This commit is contained in:
barisusakli
2014-05-12 14:51:39 -04:00
parent 9efc341772
commit c7744d7a64
4 changed files with 49 additions and 18 deletions

View File

@@ -50,6 +50,7 @@ module.exports = function(User) {
};
User.unban = function(uid, callback) {
db.delete('uid:' + uid + ':flagged_by');
User.setUserField(uid, 'banned', 0, callback);
};
};