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

Last change on this file since 976 was 976, checked in by robert@…, 6 years ago

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

File size: 554 bytes
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 repository browser.