v1.18.x
barisusakli 10 years ago
parent c6643082e2
commit f08554e788

@ -34,7 +34,7 @@ groupsController.get = function(req, res, next) {
},
function(exists, next) {
if (!exists) {
helpers.notFound(req, res);
return helpers.notFound(req, res);
}
groups.get(groupName, {uid: req.uid}, next);
}

@ -86,7 +86,8 @@ groupsController.details = function(req, res, next) {
},
posts: function(next) {
groups.getLatestMemberPosts(res.locals.groupName, 10, req.uid, next);
}
},
isAdmin: async.apply(user.isAdministrator, req.uid)
}, function(err, results) {
if (err) {
return next(err);

Loading…
Cancel
Save