mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 04:53:16 +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");
|
throw new AuthorizeException("Current user is not eligible to execute script bulk-access-control");
|
||||||
}
|
}
|
||||||
|
|
||||||
context.turnOffAuthorisationSystem();
|
|
||||||
|
|
||||||
if (uuids == null || uuids.size() == 0) {
|
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)");
|
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");
|
throw new IllegalArgumentException("At least one target uuid must be provided");
|
||||||
@@ -184,7 +182,6 @@ public class BulkAccessControl extends DSpaceRunnable<BulkAccessControlScriptCon
|
|||||||
validate(accessControl);
|
validate(accessControl);
|
||||||
updateItemsAndBitstreamsPolices(accessControl);
|
updateItemsAndBitstreamsPolices(accessControl);
|
||||||
context.complete();
|
context.complete();
|
||||||
context.restoreAuthSystemState();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
handler.handleException(e);
|
handler.handleException(e);
|
||||||
context.abort();
|
context.abort();
|
||||||
|
Reference in New Issue
Block a user