Changeset 35290
- Timestamp:
- 2021-08-13T20:04:19+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/LibraryServlet.java
r35266 r35290 1097 1097 return false; 1098 1098 } 1099 1100 ArrayList<String> groups = GSXML.getGroupsFromSecurityResponse(securityResponse); 1099 1100 // Groups mentioned in collectionConfig.xml's Security element, se_groups 1101 ArrayList<String> se_groups = GSXML.getGroupsFromSecurityResponse(securityResponse); 1101 1102 1102 1103 //If guests are not allowed to access this page then check to see if the user is in a group that is allowed to access the page 1103 if (! groups.contains(""))1104 if (!se_groups.contains("")) 1104 1105 { 1105 1106 boolean found = false; 1106 for (String group :groups)1107 for (String se_group : se_groups) 1107 1108 { 1108 if (request.isUserInRole( group))1109 if (request.isUserInRole(se_group)) 1109 1110 { 1110 1111 found = true;
Note:
See TracChangeset
for help on using the changeset viewer.