uid fixes

This commit is contained in:
Barış Soner Uşaklı
2018-11-17 22:31:39 -05:00
parent c0a75d735b
commit e17c4b2766
16 changed files with 33 additions and 39 deletions

View File

@@ -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;