use of org.molgenis.data.security.EntityIdentity in project molgenis by molgenis.
the class RowLevelSecurityRepositoryDecorator method createAcl.
@Override
public void createAcl(Entity entity) {
MutableAcl acl = mutableAclService.createAcl(new EntityIdentity(entity));
Sid sid = new PrincipalSid(SecurityUtils.getCurrentUsername());
acl.insertAce(acl.getEntries().size(), EntityPermissionUtils.getCumulativePermission(WRITE), sid, true);
mutableAclService.updateAcl(acl);
}
Aggregations