Changeset 33731

Show
Ignore:
Timestamp:
02.12.2019 12:59:13 (5 days ago)
Author:
kjdon
Message:

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

Files:
1 modified

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