Ignore:
Timestamp:
Oct 26, 2010, 3:19:22 PM (12 years ago)
Author:
robert@…
Message:

Implemented clone feature in template editor (ticket #6), added a rest call 'getUser' and added webflow to the application.properties again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/authentication/UserController.groovy

    r985 r996  
    1616
    1717import grails.converters.JSON
    18 
     18import grails.plugins.springsecurity.Secured
    1919import org.springframework.dao.DataIntegrityViolationException
    2020
     
    2222 * @author <a href='mailto:burt@burtbeckwith.com'>Burt Beckwith</a>
    2323 */
     24@Secured(['ROLE_ADMIN'])
    2425class UserController {
    2526
     
    213214
    214215        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
    215221                def user = SecUser.get(params.id)
     222               
    216223                if (!user) {
    217224                        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.