mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[CST-5669] Reverted context.turnOffAuthorisationSystem() removal
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user