privilege cleanup

This commit is contained in:
barisusakli
2014-05-17 18:59:34 -04:00
parent ff2bad635c
commit 472e6b5206
10 changed files with 29 additions and 84 deletions

View File

@@ -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) {