- Timestamp:
- Jul 14, 2010, 1:18:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ContactDetailedController.groovy
r402 r628 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 4 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager']) 4 5 class ContactDetailedController extends BaseController { 5 6 6 7 def contactService 7 8 8 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AppUser']) 9 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 10 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager', 'ROLE_AppUser']) 9 11 def index = { redirect(action:list,params:params) } 10 12 … … 12 14 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 13 15 14 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AppUser']) 16 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 17 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager', 'ROLE_AppUser']) 15 18 def list = { 16 19 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 18 21 } 19 22 20 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AppUser']) 23 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 24 'ROLE_InventoryManager', 'ROLE_AssetManager', 'ROLE_ProductionManager', 'ROLE_AppUser']) 21 25 def show = { 22 26 def contactInstance = Contact.get( params.id )
Note: See TracChangeset
for help on using the changeset viewer.