DSpace/DSpace — pull request #632 by peterdietz (2014-09-04 22:41:38+00:00)
Title: DS-2138 Discovery should get user's special groups (i.e. IPAuth)

https://jira.duraspace.org/browse/DS-2138

Discovery would calculate the objects that are accessible to the current user, by looking up the current user's epersonID, and group's their a member of. The Discovery index has already cached the objects readable per epersonID / groupID. The issue however, is that Discovery failed to account for specialGroups that a user could be a member of, such as AuthenticationManager / IPAuthentication, where an un-authenticated user could be an implicit member of a group, since their IP address is in a certain range (i.e. on-campus-users = 192.168.*)

Context mostly had this information, we just needed to pull the special groups, and not stop if the user wasn't "logged in" as a specific eperson.