Skip to content

Commit

Permalink
fix: return empty array for 'sso' otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 21, 2023
1 parent a6c98de commit db15e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/accounts/edit.js
Expand Up @@ -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: [] });
}
Expand Down

0 comments on commit db15e7c

Please sign in to comment.