mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #1731
This commit is contained in:
@@ -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));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user