diff --git a/dspace-api/src/main/java/org/dspace/administer/ProcessCleanerConfiguration.java b/dspace-api/src/main/java/org/dspace/administer/ProcessCleanerConfiguration.java index e765c2a4c185..91dcfb5dfec5 100644 --- a/dspace-api/src/main/java/org/dspace/administer/ProcessCleanerConfiguration.java +++ b/dspace-api/src/main/java/org/dspace/administer/ProcessCleanerConfiguration.java @@ -7,12 +7,7 @@ */ package org.dspace.administer; -import java.sql.SQLException; -import java.util.List; - import org.apache.commons.cli.Options; -import org.dspace.core.Context; -import org.dspace.scripts.DSpaceCommandLineParameter; import org.dspace.scripts.configuration.ScriptConfiguration; /** @@ -22,17 +17,6 @@ public class ProcessCleanerConfiguration extends Scrip private Class dspaceRunnableClass; - @Override - public boolean isAllowedToExecute(Context context, List commandLineParameters) { - try { - return authorizeService.isAdmin(context) || authorizeService.isComColAdmin(context) || - authorizeService.isItemAdmin(context); - } catch (SQLException e) { - throw new RuntimeException( - "SQLException occurred when checking if the current user is eligible to run the script", e); - } - } - @Override public Options getOptions() { if (options == null) {