Can two different acl expressions be used on two types that mix the same parent type?

#1

I have two types, Facility and Device, that mix FixedAsset. FixedAsset mixes AclEnabled. I’m trying to populate acls for those two types using two different expressions, because they have different paths to the user.

My AclPrivilege seed data looks like this:

{
“type”: “[AclPrivilege]”,
“value”: [
{
“typeName” : “Facility”,
“canUpdate” : “true”,
“canRemove” : “true”,
“canModifyAcl” : “false”,
“acl” : {
“expr” : “denormOrgParents.from.userIntersections.user”
},
“id” : “Facility_AclPrivilege”,
“name” : “Facility AclPrivilege”
}, {
“typeName” : “Device”,
“canUpdate” : “true”,
“canRemove” : “true”,
“canModifyAcl” : “false”,
“acl” : {
“expr” : “facility.denormOrgParents.from.userIntersections.user”
},
“id” : “Device_AclPrivilege”,
“name” : “Device AclPrivilege”
}
]
}

When I call populateAcls() on either Device or Facility, it returns the total number of FixedAssets, and not the number of Devices or Facilities, and the acls don’t get populated on Devices based on the acl expression for Device above.

1 Like