mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
final refactoring pass for groups -- #1252
This commit is contained in:
@@ -60,6 +60,7 @@ Controllers.home = function(req, res, next) {
|
||||
|
||||
function canSee(category, next) {
|
||||
categoryTools.privileges(category.cid, ((req.user) ? req.user.uid || 0 : 0), function(err, privileges) {
|
||||
console.log(category.cid, privileges);
|
||||
next(!err && privileges.read);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user