Skip to content

Commit

Permalink
callback being called
Browse files Browse the repository at this point in the history
(cherry picked from commit 8ef0b38)
  • Loading branch information
KevLehman authored and murtaza98 committed Sep 6, 2023
1 parent b566690 commit e574732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/authentication/server/startup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const insertUserDocAsync = async function (options, user) {
await addUserRolesAsync(_id, roles);

// Make user's roles to be present on callback
user = await Users.findOneById(_id, { projection: { username: 1, type: 1 } });
user = await Users.findOneById(_id, { projection: { username: 1, type: 1, roles: 1 } });

if (user.username) {
if (options.joinDefaultChannels !== false) {
Expand Down

0 comments on commit e574732

Please sign in to comment.