- Timestamp:
- Oct 26, 2010, 3:19:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/authentication/UserController.groovy
r985 r996 16 16 17 17 import grails.converters.JSON 18 18 import grails.plugins.springsecurity.Secured 19 19 import org.springframework.dao.DataIntegrityViolationException 20 20 … … 22 22 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a> 23 23 */ 24 @Secured(['ROLE_ADMIN']) 24 25 class UserController { 25 26 … … 213 214 214 215 protected findById() { 216 if(!params.id) { 217 flash.message = "${message(code: 'default.not.found.message', args: [message(code: 'user.label', default: 'User'), params.id])}" 218 redirect action: search 219 } 220 215 221 def user = SecUser.get(params.id) 222 216 223 if (!user) { 217 224 flash.message = "${message(code: 'default.not.found.message', args: [message(code: 'user.label', default: 'User'), params.id])}"
Note: See TracChangeset
for help on using the changeset viewer.