Changeset 149 for trunk/grails-app/controllers
- Timestamp:
- Oct 9, 2009, 9:47:11 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r139 r149 4 4 5 5 def authenticateService 6 def createDataService 6 7 7 8 def index = { redirect(action:start,params:params) } … … 45 46 } 46 47 } 47 } 48 } 48 49 49 50 def changePassword = { … … 78 79 render(view:'changePassword',model:[personInstance:personInstance]) 79 80 } 80 81 } 81 82 } 82 83 } 83 84 84 @Secured(['ROLE_Manager' ])85 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 85 86 def manager = { 86 87 } 87 88 88 @Secured(['ROLE_AppAdmin']) 89 @Secured(['ROLE_AppAdmin']) 89 90 def appAdmin = { 90 91 } 91 92 93 @Secured(['ROLE_AppAdmin']) 94 def createBaseData = { 95 createDataService.createBaseData() 96 redirect(action:appAdmin) 97 } 98 99 @Secured(['ROLE_AppAdmin']) 100 def createDemoData = { 101 createDataService.createDemoData() 102 redirect(action:appAdmin) 103 } 104 92 105 } -
trunk/grails-app/controllers/BaseController.groovy
r71 r149 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppUser' ])3 @Secured(['ROLE_AppUser', 'ROLE_AppAdmin']) 4 4 abstract class BaseController { 5 5 def whatsit() { -
trunk/grails-app/controllers/PersonController.groovy
r147 r149 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_Manager' ])3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 4 4 class PersonController extends BaseAppAdminController { 5 5
Note: See TracChangeset
for help on using the changeset viewer.