make sure user is admin/mod before forking

This commit is contained in:
barisusakli
2015-09-01 12:38:26 -04:00
parent f9575efaf0
commit ffff8093ba
3 changed files with 41 additions and 34 deletions

View File

@@ -47,7 +47,9 @@ module.exports = function(Topics) {
function(next) {
Topics.setTopicField(tid, 'lastposttime', timestamp, next);
}
], callback);
], function(err, results) {
callback(err);
});
};
Topics.updateRecent = function(tid, timestamp, callback) {