added selected group to profile api

This commit is contained in:
barisusakli
2016-08-25 14:24:17 +03:00
parent b6ac809a7d
commit abd0a10918

View File

@@ -119,6 +119,10 @@ profileController.get = function(req, res, callback) {
);
}
userData.selectedGroup = userData.groups.find(function(group) {
return group && group.name === userData.groupTitle;
});
plugins.fireHook('filter:user.account', {userData: userData, uid: req.uid}, next);
}
], function(err, results) {