Changeset 33731


Ignore:
Timestamp:
2019-12-02T12:59:13+13:00 (4 years ago)
Author:
kjdon
Message:

now that userContext has teh right info, we don't need to check userinformation anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DepositorAction.java

    r33699 r33731  
    6060        addSiteMetadata(response, uc);
    6161        addInterfaceOptions(response);
    62 
    63         // currently uc might have the wrong username.
    64         // TODO - fix this once that is fixed
    65         Element userInformation = (Element) GSXML.getChildByTagName(request, GSXML.USER_INFORMATION_ELEM);     
    66         if (userInformation != null)
    67          {
    68             String username = userInformation.getAttribute(GSXML.USERNAME_ATT);
    69             if (!username.equals("")) {
    70               uc.setUsername(username);
    71             }
    72             String groups = userInformation.getAttribute(GSXML.GROUPS_ATT);
    73             if (!groups.equals("")) {
    74               uc.setGroups(groups.split(","));
    75             }
    76          }
    7762
    7863        String currentUsername = uc.getUsername();
Note: See TracChangeset for help on using the changeset viewer.