Changeset 454 for trunk/grails-app/services
- Timestamp:
- Mar 25, 2010, 4:54:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/PersonCsvService.groovy
r440 r454 163 163 164 164 // Add Authorities. 165 //personInstance.addToAuthorities(Authority.get(1)) 165 if('true'.equalsIgnoreCase(personParams.ROLE_Manager)) 166 personInstance.addToAuthorities(Authority.get(2)) 167 if('true'.equalsIgnoreCase(personParams.ROLE_AppUser)) 168 personInstance.addToAuthorities(Authority.get(3)) 169 if('true'.equalsIgnoreCase(personParams.ROLE_TaskManager)) 170 personInstance.addToAuthorities(Authority.get(4)) 171 if('true'.equalsIgnoreCase(personParams.ROLE_TaskUser)) 172 personInstance.addToAuthorities(Authority.get(5)) 173 if('true'.equalsIgnoreCase(personParams.ROLE_InventoryManager)) 174 personInstance.addToAuthorities(Authority.get(6)) 175 if('true'.equalsIgnoreCase(personParams.ROLE_InventoryUser)) 176 personInstance.addToAuthorities(Authority.get(7)) 177 if('true'.equalsIgnoreCase(personParams.ROLE_AssetManager)) 178 personInstance.addToAuthorities(Authority.get(8)) 179 if('true'.equalsIgnoreCase(personParams.ROLE_AssetUser)) 180 personInstance.addToAuthorities(Authority.get(9)) 181 if('true'.equalsIgnoreCase(personParams.ROLE_ProductionManager)) 182 personInstance.addToAuthorities(Authority.get(10)) 183 if('true'.equalsIgnoreCase(personParams.ROLE_ProductionUser)) 184 personInstance.addToAuthorities(Authority.get(11)) 166 185 167 186 if(lineNumber % 100 == 0)
Note: See TracChangeset
for help on using the changeset viewer.