|
|
@ -118,11 +118,8 @@ profileController.get = function(req, res, callback) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
userData.selectedGroup = userData.groups.find(function(group) {
|
|
|
|
userData.groups.forEach(function(group) {
|
|
|
|
return group && group.name === userData.groupTitle;
|
|
|
|
if (group && group.name === userData.groupTitle) {
|
|
|
|
|
|
|
|
userData.selectedGroup = group;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:user.account', {userData: userData, uid: req.uid}, next);
|
|
|
|
plugins.fireHook('filter:user.account', {userData: userData, uid: req.uid}, next);
|
|
|
|