Special groups shown for logged in user rather than for user being examined
---------------------------------------------------------------------------
Key: DS-242
URL: http://jira.dspace.org/jira/browse/DS-242
Project: DSpace 1.x
Issue Type: Bug
Affects Versions: 1.5.2
Reporter: Stuart Lewis
Assignee: Stuart Lewis
Priority: Minor
Fix For: 1.6.0
Attachments: special-groups-display.patch
When you examine a user, you can see which groups they are in. This list
includes special groups, however rather than showing the special groups of that
user, it shows the special groups of the current user. It would be impossible
to list the special groups of a user who is not logged in.
The code has been changed to:
// Also need to get all "Special Groups" user is a member of!
// Otherwise, you're ignoring the user's membership to these groups!
// 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())
{
Group[] specialGroups = c.getSpecialGroups();
for(Group special : specialGroups)
{
groupIDs.add(new Integer(special.getID()));
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel