Changeset 71 for branches/TaskRewrite/src/grails-app/controllers
- Timestamp:
- Mar 10, 2009, 3:00:59 AM (16 years ago)
- Location:
- branches/TaskRewrite/src/grails-app/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TaskRewrite/src/grails-app/controllers/AppCoreController.groovy
r69 r71 2 2 3 3 class AppCoreController extends BaseController { 4 5 def authenticateService 4 6 5 7 def index = { redirect(action:home,params:params) } … … 12 14 } 13 15 14 @Secured(['ROLE_ADMIN']) 16 def options = { 17 def principal = authenticateService.principal() 18 println principal.getUsername()//get username 19 println principal.getAuthorities()//get authorities() 20 } 21 22 @Secured(['ROLE_AppAdmin']) 15 23 def admin = { 16 24 } -
branches/TaskRewrite/src/grails-app/controllers/AuthorityController.groovy
r62 r71 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_A DMIN'])3 @Secured(['ROLE_AppAdmin']) 4 4 class AuthorityController { 5 5 -
branches/TaskRewrite/src/grails-app/controllers/BaseController.groovy
r69 r71 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_ USER'])3 @Secured(['ROLE_AppUser']) 4 4 abstract class BaseController { 5 5 def whatsit() {
Note: See TracChangeset
for help on using the changeset viewer.