mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
CST-9634 remove unnecessary turn off/on auth system
This commit is contained in:
@@ -163,8 +163,6 @@ public class BulkAccessControl extends DSpaceRunnable<BulkAccessControlScriptCon
|
||||
throw new AuthorizeException("Current user is not eligible to execute script bulk-access-control");
|
||||
}
|
||||
|
||||
context.turnOffAuthorisationSystem();
|
||||
|
||||
if (uuids == null || uuids.size() == 0) {
|
||||
handler.logError("A target uuid must be provided with at least on uuid (run with -h flag for details)");
|
||||
throw new IllegalArgumentException("At least one target uuid must be provided");
|
||||
@@ -184,7 +182,6 @@ public class BulkAccessControl extends DSpaceRunnable<BulkAccessControlScriptCon
|
||||
validate(accessControl);
|
||||
updateItemsAndBitstreamsPolices(accessControl);
|
||||
context.complete();
|
||||
context.restoreAuthSystemState();
|
||||
} catch (Exception e) {
|
||||
handler.handleException(e);
|
||||
context.abort();
|
||||
|
Reference in New Issue
Block a user