@mashroom/mashroom-security-provider-ldap
Advanced tools
Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4
@@ -264,8 +264,12 @@ "use strict"; | ||
if (userToRoles && userToRoles.hasOwnProperty(username)) { | ||
userToRoles[username].forEach(role => { | ||
if (roles.indexOf(role) === -1) { | ||
roles.push(role); | ||
} | ||
}); | ||
if (userToRoles) { | ||
const roleProp = Object.keys(userToRoles).find(u => u.toLowerCase() === username.toLowerCase()); | ||
if (roleProp) { | ||
userToRoles[roleProp].forEach(role => { | ||
if (roles.indexOf(role) === -1) { | ||
roles.push(role); | ||
} | ||
}); | ||
} | ||
} | ||
@@ -272,0 +276,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.0-alpha.3", | ||
"version": "2.0.0-alpha.4", | ||
"files": [ | ||
@@ -16,5 +16,5 @@ "dist/**" | ||
"devDependencies": { | ||
"@mashroom/mashroom": "2.0.0-alpha.3", | ||
"@mashroom/mashroom-security": "2.0.0-alpha.3", | ||
"@mashroom/mashroom-utils": "2.0.0-alpha.3", | ||
"@mashroom/mashroom": "2.0.0-alpha.4", | ||
"@mashroom/mashroom-security": "2.0.0-alpha.4", | ||
"@mashroom/mashroom-utils": "2.0.0-alpha.4", | ||
"@types/express": "^4.17.13", | ||
@@ -21,0 +21,0 @@ "@types/ldapjs": "^2.2.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29094
573