We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d623928 commit 59b8e85Copy full SHA for 59b8e85
src/Auth.js
@@ -356,19 +356,6 @@ Auth.prototype._loadRoles = async function () {
356
return this.userRoles;
357
}
358
359
- if (!(this.config?.database?.adapter instanceof MongoStorageAdapter)) {
360
- const rolesMap = results.reduce(
361
- (m, r) => {
362
- m.names.push(r.name);
363
- m.ids.push(r.objectId);
364
- return m;
365
- },
366
- { ids: [], names: [] }
367
- );
368
- const roleNames = await this._getAllRolesNamesForRoleIds(rolesMap.ids, rolesMap.names);
369
- this.userRoles = roleNames.map(r => `role:${r}`);
370
- }
371
-
372
if (typeof results[0] === 'object') {
373
const rolesMap = results.reduce(
374
(m, r) => {
0 commit comments