mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
Merge pull request #1265 from mwoodiupui/DS-3024
[DS-3024] "Administrator" and "Anonymous" groups can be renamed, which would cause them to no longer function in 6.x
This commit is contained in:
@@ -318,7 +318,8 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
Group g = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
g.setName(context, "COLLECTION_" + collection.getID() + "_WORKFLOW_STEP_" + step);
|
||||
groupService.setName(context, g,
|
||||
"COLLECTION_" + collection.getID() + "_WORKFLOW_STEP_" + step);
|
||||
groupService.update(context, g);
|
||||
setWorkflowGroup(collection, step, g);
|
||||
|
||||
@@ -395,7 +396,8 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
submitters = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
submitters.setName(context, "COLLECTION_" + collection.getID() + "_SUBMIT");
|
||||
groupService.setName(context, submitters,
|
||||
"COLLECTION_" + collection.getID() + "_SUBMIT");
|
||||
groupService.update(context, submitters);
|
||||
}
|
||||
|
||||
@@ -435,7 +437,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
admins = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
admins.setName(context, "COLLECTION_" + collection.getID() + "_ADMIN");
|
||||
groupService.setName(context, admins, "COLLECTION_" + collection.getID() + "_ADMIN");
|
||||
groupService.update(context, admins);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user