more fixed to privs, and ACP modal

This commit is contained in:
Julian Lam
2014-05-12 17:16:29 -04:00
parent d54ecea506
commit 87f4566e06
6 changed files with 41 additions and 86 deletions

View File

@@ -130,7 +130,7 @@ SocketPosts.getRawPost = function(socket, pid, callback) {
postTools.privileges(pid, socket.uid, next);
},
function(privileges, next) {
if (!privileges || !privileges.read) {
if (!privileges || !privileges.meta.read) {
return next(new Error('[[error:no-privileges]]'));
}
posts.getPostFields(pid, ['content', 'deleted'], next);