mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-13 00:46:48 +02:00
check user settings
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = function(Posts) {
|
||||
userTitle: group.userTitle
|
||||
};
|
||||
|
||||
if (group.name === results.userSettings[i].groupTitle && group.userTitleEnabled) {
|
||||
if (results.userSettings[i] && group.name === results.userSettings[i].groupTitle && group.userTitleEnabled) {
|
||||
userData.selectedGroup = userData.groups[index];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user