Fix some ACL ingestion logic

master
Rohan Vazarkar 2017-05-01 10:06:21 -04:00
parent c4ffe06310
commit 73fa4260c3
1 changed files with 5 additions and 1 deletions

View File

@ -179,14 +179,18 @@ export function buildACLProps(rows) {
var btype = row.ObjectType.toTitleCase() var btype = row.ObjectType.toTitleCase()
var atype = row.PrincipalType.toTitleCase() var atype = row.PrincipalType.toTitleCase()
var rel = row.ActiveDirectoryRights var rel = row.ActiveDirectoryRights
var extright = row.AccessControlType var extright = row.ACEType
if (extright === 'All'){ if (extright === 'All'){
rel = "AllExtendedRights" rel = "AllExtendedRights"
}else if (extright === 'User-Force-Change-Password'){ }else if (extright === 'User-Force-Change-Password'){
rel = "ForceChangePassword" rel = "ForceChangePassword"
}else if (rel === "ExtendedRight"){
rel = extright
} }
rel = rel.replace(/-/g,"")
if (rel.includes('WriteOwner')){ if (rel.includes('WriteOwner')){
rel = 'WriteOwner' rel = 'WriteOwner'
} }