mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
[DS-242] Special groups shown for logged in user rather than for user being examined - fix NPE
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4077 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -475,7 +475,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().getID() == e.getID())
|
||||
if ((c.getCurrentUser() != null) && (c.getCurrentUser().getID() == e.getID()))
|
||||
{
|
||||
Group[] specialGroups = c.getSpecialGroups();
|
||||
for(Group special : specialGroups)
|
||||
|
Reference in New Issue
Block a user