Fix RowLevelSecurityFT

This commit is contained in:
Maxim Gorbunkov 2017-04-03 14:12:00 +04:00
parent 99c3b6bfb6
commit 79fab5d143

View File

@ -198,12 +198,7 @@ public class EntityImportExport implements EntityImportExportAPI {
.setSoftDeletion(false)
.setView(regularView)
.setId(srcEntity.getId());
Entity dstEntity = dataManager.load(ctx);
if (dstEntity instanceof BaseGenericIdEntity) {
byte[] securityToken = BaseEntityInternalAccess.getSecurityToken((BaseGenericIdEntity) srcEntity);
BaseEntityInternalAccess.setSecurityToken((BaseGenericIdEntity) dstEntity, securityToken);
}
Entity dstEntity = dataManager.secure().load(ctx);
importEntity(srcEntity, dstEntity, importView, regularView, commitContext, referenceInfoList);
}