mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
privilege cleanup
This commit is contained in:
@@ -129,7 +129,7 @@ function sendNotificationToPostOwner(data, uid, notification) {
|
||||
SocketPosts.getRawPost = function(socket, pid, callback) {
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
privileges.posts.canRead(pid, socket.uid, next);
|
||||
privileges.posts.can('read', pid, socket.uid, next);
|
||||
},
|
||||
function(canRead, next) {
|
||||
if (!canRead) {
|
||||
|
||||
Reference in New Issue
Block a user