Last change
on this file since 976 was
976,
checked in by robert@…, 12 years ago
|
Authentication and authorization for studies is added, according to ticket 118
|
File size:
554 bytes
|
Line | |
---|
1 | package dbnp.authentication |
---|
2 | |
---|
3 | import grails.plugins.springsecurity.Secured |
---|
4 | import grails.plugins.springsecurity.ui.* |
---|
5 | import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils |
---|
6 | import org.codehaus.groovy.grails.plugins.springsecurity.ui.RegistrationCode |
---|
7 | |
---|
8 | class 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.