Changeset 1388 for trunk/grails-app/controllers
- Timestamp:
- Jan 13, 2011, 10:53:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy
r1387 r1388 26 26 * $Date$ 27 27 */ 28 @Secured(['IS_AUTHENTICATED_REMEMBERED'])28 //@Secured(['IS_AUTHENTICATED_REMEMBERED']) 29 29 class ImporterController { 30 30 // the pluginManager is used to check if the Grom … … 127 127 } 128 128 on("next") { 129 flash.wizardErrors = [:] 130 129 131 // Study selected? 130 132 flow.importer_study = (params.study) ? Study.get(params.study.id.toInteger()) : null 131 133 132 // Trying to import a newstudy?134 // Trying to import data into an existing study? 133 135 if (flow.importer_study) 134 136 if (flow.importer_study.canWrite(AuthenticationService.getLoggedInUser())) { … … 136 138 success() 137 139 } else { 138 error.log ".importer wizard not all fields are filled in" 140 log.error ".importer wizard not all fields are filled in" 141 this.appendErrorMap(['error': "Not all fields are filled in, please fill in or select all fields"], flash.wizardErrors) 139 142 error() 140 143 } 141 144 } else 142 145 { 143 error.log ".importer wizard wrong permissions" 146 log.error ".importer wizard wrong permissions" 147 this.appendErrorMap(['error': "You don't have the right permissions"], flash.wizardErrors) 148 149 error() 144 150 } 145 151 else { … … 147 153 success() 148 154 } else { 149 error.log ".importer wizard not all fields are filled in" 155 log.error ".importer wizard not all fields are filled in" 156 this.appendErrorMap(['error': "Not all fields are filled in, please fill in or select all fields"], flash.wizardErrors) 150 157 error() 151 158 }
Note: See TracChangeset
for help on using the changeset viewer.