mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix #8963: Remove deletion constraint from Groomer
This commit is contained in:
@@ -141,15 +141,6 @@ public class Groomer {
|
||||
System.out.println();
|
||||
|
||||
if (delete) {
|
||||
List<String> whyNot = ePersonService.getDeleteConstraints(myContext, account);
|
||||
if (!whyNot.isEmpty()) {
|
||||
System.out.print("\tCannot be deleted; referenced in");
|
||||
for (String table : whyNot) {
|
||||
System.out.print(' ');
|
||||
System.out.print(table);
|
||||
}
|
||||
System.out.println();
|
||||
} else {
|
||||
try {
|
||||
ePersonService.delete(myContext, account);
|
||||
} catch (AuthorizeException | IOException ex) {
|
||||
@@ -157,7 +148,6 @@ public class Groomer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
myContext.restoreAuthSystemState();
|
||||
myContext.complete();
|
||||
|
Reference in New Issue
Block a user