mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
Fix RowLevelSecurityFT
This commit is contained in:
parent
99c3b6bfb6
commit
79fab5d143
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user