Skip to content

Commit

Permalink
Merge pull request DSpace#2862 from bme-omikk/DS-4534_7x
Browse files Browse the repository at this point in the history
DS-4534 fix for Anonymous as a sub-group.
  • Loading branch information
tdonohue authored Jul 17, 2020
2 parents fb96338 + 314fa76 commit 6b3bd4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b3bd4d

Please sign in to comment.