[DS-242] Special groups shown for logged in user rather than for user being examined

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4904 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Stuart Lewis
2010-05-10 08:34:53 +00:00
parent 260177005c
commit 25ecccece2
2 changed files with 3 additions and 2 deletions

View File

@@ -479,7 +479,7 @@ public class Group extends DSpaceObject
// However, we only do this is we are looking up the special groups
// of the current user, as we cannot look up the special groups
// of a user who is not logged in.
if ((c.getCurrentUser() != null) && (c.getCurrentUser().getID() == e.getID()))
if ((c.getCurrentUser() == null) || (((c.getCurrentUser() != null) && (c.getCurrentUser().getID() == e.getID()))))
{
Group[] specialGroups = c.getSpecialGroups();
for(Group special : specialGroups)