Skip to content

Node.js based forum software built for the modern web

closes #4838

barisusakli51a50448b863
diff --git a/src/socket.io/helpers.js b/src/socket.io/helpers.js
index 9efeb4c5d9..706604ec6e 100644
--- a/src/socket.io/helpers.js
+++ b/src/socket.io/helpers.js
@@ -89,7 +89,10 @@ SocketHelpers.sendNotificationToPostOwner = function(pid, fromuid, command, noti
},
function (_postData, next) {
postData = _postData;
- if (!postData.uid || fromuid === parseInt(postData.uid, 10)) {
+ privileges.posts.can('read', pid, postData.uid, next);
+ },
+ function (canRead, next) {
+ if (!canRead || !postData.uid || fromuid === parseInt(postData.uid, 10)) {
return;
}
async.parallel({