Skip to content

Node.js based forum software built for the modern web

closes #2009

barisusakli5a42b6a7ea15
diff --git a/src/socket.io/categories.js b/src/socket.io/categories.js
index 4cac4beb56..554ea486a9 100644
--- a/src/socket.io/categories.js
+++ b/src/socket.io/categories.js
@@ -24,7 +24,7 @@ SocketCategories.getRecentReplies = function(socket, cid, callback) {
};
SocketCategories.get = function(socket, data, callback) {
- categories.getAllCategories(callback);
+ categories.getCategoriesByPrivilege(socket.uid, 'find', callback);
};
SocketCategories.loadMore = function(socket, data, callback) {