SEC-1012: Extra fixes to dependent modules following changes to Acl APIs.
This commit is contained in:
@@ -76,9 +76,9 @@ public class SecureDataSourcePopulator extends DataSourcePopulator {
|
||||
|
||||
// Now we have an ACL, add another ACE to it
|
||||
if (level == LEVEL_NEGATE_READ) {
|
||||
acl.insertAce(acl.getEntries().length, permission, sid, false); // not granting
|
||||
acl.insertAce(acl.getEntries().size(), permission, sid, false); // not granting
|
||||
} else {
|
||||
acl.insertAce(acl.getEntries().length, permission, sid, true); // granting
|
||||
acl.insertAce(acl.getEntries().size(), permission, sid, true); // granting
|
||||
}
|
||||
|
||||
// Finally, persist the modified ACL
|
||||
|
||||
@@ -54,7 +54,7 @@ public class SecureDocumentDaoImpl extends DocumentDaoImpl implements SecureDocu
|
||||
MutableAcl aclParent = (MutableAcl) mutableAclService.readAclById(parentIdentity);
|
||||
acl.setParent(aclParent);
|
||||
}
|
||||
acl.insertAce(acl.getEntries().length, BasePermission.ADMINISTRATION, new PrincipalSid(SecurityContextHolder.getContext().getAuthentication()), true);
|
||||
acl.insertAce(acl.getEntries().size(), BasePermission.ADMINISTRATION, new PrincipalSid(SecurityContextHolder.getContext().getAuthentication()), true);
|
||||
|
||||
mutableAclService.updateAcl(acl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user