|
|
@ -5,11 +5,14 @@ var groups = require('../groups'),
|
|
|
|
nconf = require('nconf'),
|
|
|
|
nconf = require('nconf'),
|
|
|
|
groupsController = {};
|
|
|
|
groupsController = {};
|
|
|
|
|
|
|
|
|
|
|
|
groupsController.list = function(req, res) {
|
|
|
|
groupsController.list = function(req, res, next) {
|
|
|
|
groups.list({
|
|
|
|
groups.list({
|
|
|
|
truncateUserList: true,
|
|
|
|
truncateUserList: true,
|
|
|
|
expand: true
|
|
|
|
expand: true
|
|
|
|
}, function(err, groups) {
|
|
|
|
}, function(err, groups) {
|
|
|
|
|
|
|
|
if (err) {
|
|
|
|
|
|
|
|
return next(err);
|
|
|
|
|
|
|
|
}
|
|
|
|
res.render('groups/list', {
|
|
|
|
res.render('groups/list', {
|
|
|
|
groups: groups
|
|
|
|
groups: groups
|
|
|
|
});
|
|
|
|
});
|
|
|
|