return groupIds in get user route

This commit is contained in:
Girish Ramakrishnan
2016-06-03 00:00:11 -07:00
parent 80ca69a128
commit f4958d936c
2 changed files with 9 additions and 11 deletions
+1
View File
@@ -300,6 +300,7 @@ function getUser(userId, callback) {
if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));
result.groupIds = groupIds;
result.admin = groupIds.indexOf(groups.ADMIN_GROUP_ID) !== -1;
return callback(null, result);
});