From 314fa766415dd2b163875ee47b286fc50787a340 Mon Sep 17 00:00:00 2001 From: Istvan Vig Date: Thu, 16 Jul 2020 10:00:56 +0200 Subject: [PATCH] DS-4534 fix for Anonymous as a sub-group. --- .../src/main/java/org/dspace/eperson/GroupServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dspace-api/src/main/java/org/dspace/eperson/GroupServiceImpl.java b/dspace-api/src/main/java/org/dspace/eperson/GroupServiceImpl.java index 4437516315f..17893e775e7 100644 --- a/dspace-api/src/main/java/org/dspace/eperson/GroupServiceImpl.java +++ b/dspace-api/src/main/java/org/dspace/eperson/GroupServiceImpl.java @@ -189,7 +189,8 @@ public boolean isMember(Context context, EPerson ePerson, Group group) return false; // special, everyone is member of group 0 (anonymous) - } else if (StringUtils.equals(group.getName(), Group.ANONYMOUS)) { + } else if (StringUtils.equals(group.getName(), Group.ANONYMOUS) || + isParentOf(context, group, findByName(context, Group.ANONYMOUS))) { return true; } else {