mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
uid fixes
This commit is contained in:
@@ -217,7 +217,7 @@ module.exports = function (Posts) {
|
||||
function vote(type, unvote, pid, uid, callback) {
|
||||
uid = parseInt(uid, 10);
|
||||
|
||||
if (!uid) {
|
||||
if (uid <= 0) {
|
||||
return callback(new Error('[[error:not-logged-in]]'));
|
||||
}
|
||||
var postData;
|
||||
|
||||
Reference in New Issue
Block a user