mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: return empty array for 'sso' otherwise
This commit is contained in:
@@ -40,6 +40,7 @@ editController.get = async function (req, res) {
|
||||
|
||||
payload.groups = _groups.filter(g => g && g.userTitleEnabled && !groups.isPrivilegeGroup(g.name) && g.name !== 'registered-users');
|
||||
|
||||
payload.sso = [];
|
||||
if (req.uid === res.locals.uid || canManageUsers) {
|
||||
payload.sso = await plugins.hooks.fire('filter:auth.list', { uid: res.locals.uid, associations: [] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user