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:
Mark H. Wood
2016-02-17 16:18:36 -05:00
19 changed files with 860 additions and 40 deletions

View File

@@ -270,7 +270,7 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
admins = groupService.create(context);
context.restoreAuthSystemState();
admins.setName(context, "COMMUNITY_" + community.getID() + "_ADMIN");
groupService.setName(context, admins, "COMMUNITY_" + community.getID() + "_ADMIN");
groupService.update(context, admins);
}