Changeset 28161 for main/trunk
- Timestamp:
- 2013-08-27T11:26:01+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java
r28120 r28161 142 142 public void cleanUp() 143 143 { 144 145 144 super.cleanUp(); 146 145 … … 162 161 _derbyWrapperDoneForcedShutdown = true; 163 162 } 164 165 163 } 166 164 … … 249 247 } 250 248 251 protected void addCustomParams(String service, Element param_list, String lang)252 {253 }254 255 protected void createParameter(String name, Element param_list, String lang)256 {257 }258 259 249 protected Element processGetUserInformation(Element request) 260 250 { … … 332 322 result.setAttribute(GSXML.FROM_ATT, AUTHENTICATION_SERVICE); 333 323 result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS); 334 335 String[] userGroups = (new UserContext(request)).getGroups();336 337 boolean found = false;338 for (String group : userGroups)339 {340 if (group.equals("administrator"))341 {342 found = true;343 }344 }345 346 if (!found)347 {348 GSXML.addError(this.doc, result, "This user does not have the required permissions to perform this action.");349 return result;350 }351 324 352 325 // Create an Authentication node put into the result
Note:
See TracChangeset
for help on using the changeset viewer.