- Timestamp:
- Jan 25, 2010, 2:14:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/SiteDetailedController.groovy
r289 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_ Manager','ROLE_AppAdmin'])3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 4 4 class SiteDetailedController extends BaseController { 5 5 … … 7 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 8 8 9 @Secured(['ROLE_AppAdmin', 'ROLE_Manager','ROLE_AppUser'])9 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 10 10 def index = { redirect(action:list,params:params) } 11 11 12 @Secured(['ROLE_AppAdmin', 'ROLE_Manager','ROLE_AppUser'])12 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 13 13 def list = { 14 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 16 16 } 17 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager','ROLE_AppUser'])18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 19 19 def show = { 20 20 def siteInstance = Site.get( params.id )
Note: See TracChangeset
for help on using the changeset viewer.