fixes 2 privilege issues

v1.18.x
barisusakli 11 years ago
parent 52cb62960f
commit 3643fbc212

@ -164,7 +164,7 @@ var db = require('./database'),
async.filter(pids, function(pid, next) { async.filter(pids, function(pid, next) {
postTools.privileges(pid, callerUid, function(err, privileges) { postTools.privileges(pid, callerUid, function(err, privileges) {
next(!err && privileges.read); next(!err && privileges.meta.read);
}); });
}, function(pids) { }, function(pids) {
if (!(pids && pids.length)) { if (!(pids && pids.length)) {
@ -216,7 +216,7 @@ var db = require('./database'),
async.filter(pids, function(pid, next) { async.filter(pids, function(pid, next) {
postTools.privileges(pid, uid, function(err, privileges) { postTools.privileges(pid, uid, function(err, privileges) {
next(!err && privileges.read); next(!err && privileges.meta.read);
}); });
}, function(pids) { }, function(pids) {
Posts.getPostSummaryByPids(pids, true, callback); Posts.getPostSummaryByPids(pids, true, callback);

Loading…
Cancel
Save