upgrading privilege sets to be system groups, so they're not in the way

This commit is contained in:
Julian Lam
2015-02-23 15:43:32 -05:00
parent 4984f2f449
commit 8262c38ac8
3 changed files with 44 additions and 18 deletions

View File

@@ -327,8 +327,8 @@ adminController.extend.rewards = function(req, res, next) {
adminController.groups.get = function(req, res, next) {
groups.list({
expand: true,
showSystemGroups: true,
truncateUserList: true
truncateUserList: true,
isAdmin: true
}, function(err, groups) {
groups = groups.filter(function(group) {
return group.name !== 'registered-users' && group.name !== 'guests';