group join/leave controls in groups list page (+ helper!)

This commit is contained in:
Julian Lam
2015-01-07 14:58:31 -05:00
parent f3fa2f10ed
commit 917f76feab
3 changed files with 35 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ var groups = require('../groups'),
groupsController.list = function(req, res, next) {
groups.list({
truncateUserList: true,
expand: true
expand: true,
uid: req.user ? req.user.uid : 0
}, function(err, groups) {
if (err) {
return next(err);