[CST-5669] Reverted context.turnOffAuthorisationSystem() removal

This commit is contained in:
Luca Giamminonni
2022-06-09 18:29:43 +02:00
parent f193701cff
commit 23fd0bb920

View File

@@ -271,9 +271,12 @@ public class OrcidSynchronizationServiceImpl implements OrcidSynchronizationServ
private void updateEPerson(Context context, EPerson ePerson) throws SQLException {
try {
context.turnOffAuthorisationSystem();
ePersonService.update(context, ePerson);
} catch (AuthorizeException e) {
throw new RuntimeException(e);
} finally {
context.restoreAuthSystemState();
}
}
}