Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-242

Special groups shown for logged in user rather than for user being examined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2, 1.6.0
    • Fix Version/s: 1.6.1, 1.7.0
    • Component/s: None
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      1

      Description

      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())); }

      }

        Attachments

          Activity

            People

            • Assignee:
              stuartlewis Stuart Lewis
              Reporter:
              stuartlewis Stuart Lewis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: