root/trunk/grails-app/controllers/dbnp/authentication/RegisterController.groovy @ 976

Revision 976, 0.5 KB (checked in by robert@…, 4 years ago)

Authentication and authorization for studies is added, according to ticket 118

Line 
1package dbnp.authentication
2
3import grails.plugins.springsecurity.Secured
4import grails.plugins.springsecurity.ui.*
5import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
6import org.codehaus.groovy.grails.plugins.springsecurity.ui.RegistrationCode
7
8class RegisterController extends grails.plugins.springsecurity.ui.RegisterController {
9
10    // The registration should be done using the UserRegistration controller
11    @Secured(['ROLE_ADMIN'])
12    def index = {
13        throw new Exception( "Method should not be called!" )
14    }
15
16}
Note: See TracBrowser for help on using the browser.