From 3643fbc21235b6e321123469eb004c33f77305b9 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 14 May 2014 14:56:46 -0400 Subject: [PATCH] fixes 2 privilege issues --- src/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts.js b/src/posts.js index 5236ce1118..041434c67c 100644 --- a/src/posts.js +++ b/src/posts.js @@ -164,7 +164,7 @@ var db = require('./database'), async.filter(pids, function(pid, next) { postTools.privileges(pid, callerUid, function(err, privileges) { - next(!err && privileges.read); + next(!err && privileges.meta.read); }); }, function(pids) { if (!(pids && pids.length)) { @@ -216,7 +216,7 @@ var db = require('./database'), async.filter(pids, function(pid, next) { postTools.privileges(pid, uid, function(err, privileges) { - next(!err && privileges.read); + next(!err && privileges.meta.read); }); }, function(pids) { Posts.getPostSummaryByPids(pids, true, callback);