mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
closes #4838
This commit is contained in:
@@ -89,7 +89,10 @@ SocketHelpers.sendNotificationToPostOwner = function(pid, fromuid, command, noti
|
|||||||
},
|
},
|
||||||
function (_postData, next) {
|
function (_postData, next) {
|
||||||
postData = _postData;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
async.parallel({
|
async.parallel({
|
||||||
|
|||||||
Reference in New Issue
Block a user