Skip to content

Commit 59b8e85

Browse files
committed
Update Auth.js
1 parent d623928 commit 59b8e85

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Auth.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -356,19 +356,6 @@ Auth.prototype._loadRoles = async function () {
356356
return this.userRoles;
357357
}
358358

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-
372359
if (typeof results[0] === 'object') {
373360
const rolesMap = results.reduce(
374361
(m, r) => {

0 commit comments

Comments
 (0)