This commit is contained in:
barisusakli
2014-06-23 17:26:02 -04:00
parent a9adfe9428
commit 9af12819e3
4 changed files with 32 additions and 28 deletions

View File

@@ -472,10 +472,7 @@ var async = require('async'),
Posts.isOwner = function(pid, uid, callback) {
Posts.getPostField(pid, 'uid', function(err, author) {
if (err) {
return callback(err);
}
callback(null, parseInt(author, 10) === parseInt(uid, 10));
callback(err, parseInt(author, 10) === parseInt(uid, 10));
});
};