mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +01:00
closes #2701
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user