mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
closes #4838
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user