Changeset 35287 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java
- Timestamp:
- 2021-08-12T19:34:43+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java
r35286 r35287 163 163 protected static final String COLLECTION = "collection"; 164 164 protected static final String GROUPS = "groups"; 165 protected static final String EXPANDED_GROUPS = "expanded_groups"; 165 166 protected static final String STATUS = "status"; 166 167 protected static final String RECAPTCHA_KEY = "recaptcha_key"; … … 427 428 428 429 // gliserver.pl used to return the groups when authentication succeeded 429 String groups = retrieveDataForUser(username, GROUPS); //comma-separated list430 String groups = retrieveDataForUser(username, EXPANDED_GROUPS); //comma-separated list 430 431 431 432 if(collection.equals("")) { … … 1211 1212 break; 1212 1213 } 1214 else if (dataType.equals(EXPANDED_GROUPS)) 1215 { 1216 data = ((UserTermInfo) userInfo.get(i)).getExpandedGroups(); 1217 break; 1218 } 1213 1219 else if (dataType.equals(STATUS)) 1214 1220 { … … 1247 1253 String username = ((UserTermInfo) userInfo.get(i)).getUsername(); 1248 1254 String groups = ((UserTermInfo) userInfo.get(i)).getOrigGroups(); 1255 // Retrieve original (stored, user-entered) and not expanded groups 1256 // as getUserNodeList only used in addUserInformationToNode() which 1257 // allows displaying and modifying user info pages 1258 // and authenticating admin user which doesn't require expanded groups. 1249 1259 String accountstatus = ((UserTermInfo) userInfo.get(i)).getAccountStatus(); 1250 1260 String comment = ((UserTermInfo) userInfo.get(i)).getComment();
Note:
See TracChangeset
for help on using the changeset viewer.