move context after condition
This commit is contained in:
parent
b49b10ec15
commit
a06bdf6169
@ -797,8 +797,8 @@ public class ImportHostingAssets extends ImportOfficeData {
|
|||||||
|
|
||||||
jpaAttempt.transacted(() ->
|
jpaAttempt.transacted(() ->
|
||||||
hostingAssets.forEach((key, ha) -> {
|
hostingAssets.forEach((key, ha) -> {
|
||||||
context(rbacSuperuser); // if put only outside the loop, it seems to get lost after a while, no idea why
|
|
||||||
if (hsHostingAssetTypeSet.contains(ha.getType())) {
|
if (hsHostingAssetTypeSet.contains(ha.getType())) {
|
||||||
|
context(rbacSuperuser); // if put only outside the loop, it seems to get lost after a while, no idea why
|
||||||
logError(() ->
|
logError(() ->
|
||||||
new HostingAssetEntitySaveProcessor(em, ha)
|
new HostingAssetEntitySaveProcessor(em, ha)
|
||||||
.preprocessEntity()
|
.preprocessEntity()
|
||||||
|
Loading…
Reference in New Issue
Block a user