mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
This commit is contained in:
@@ -122,8 +122,9 @@ profileController.get = function (req, res, callback) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
userData.selectedGroup = userData.groups.find(function (group) {
|
|
||||||
return group && group.name === userData.groupTitle;
|
userData.selectedGroup = userData.groups.filter(function (group) {
|
||||||
|
return group && userData.groupTitleArray.includes(group.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
plugins.fireHook('filter:user.account', { userData: userData, uid: req.uid }, next);
|
plugins.fireHook('filter:user.account', { userData: userData, uid: req.uid }, next);
|
||||||
|
|||||||
Reference in New Issue
Block a user