Add AccessContext.asTenant and use where possible (#2838)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user