use group name, hidden groups are not in groupslug:groupname

This commit is contained in:
Barış Soner Uşaklı
2015-06-23 14:08:04 -04:00
parent 6fc073d33e
commit 981a7558f7
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ groupsController.list = function(req, res, next) {
};
groupsController.get = function(req, res, next) {
var groupName = res.locals.groupName;
var groupName = req.params.name;
async.waterfall([
function(next){
groups.exists(groupName, next);