Add AccessContext.asTenant and use where possible (#2838)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-11-27 16:27:56 +02:00
committed by GitHub
parent f6f62db0ad
commit 42384b7e31
17 changed files with 184 additions and 97 deletions

View File

@@ -43,7 +43,7 @@ public class CleanupTestExecutionListener extends AbstractTestExecutionListener
}
private void clearTestRepository(final SystemManagement systemManagement) {
asSystem(() -> systemManagement.forEachTenant(tenant -> {
asSystem(() -> systemManagement.forEachTenantAsSystem(tenant -> {
try {
asSystem(() -> systemManagement.deleteTenant(tenant));
} catch (final Exception e) {