Ignore:
Timestamp:
Jan 25, 2010, 2:14:48 PM (14 years ago)
Author:
gav
Message:

Set base authorisations on all controllers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r291 r298  
    33import com.zeddware.grails.plugins.filterpane.FilterUtils
    44
     5@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager'])
    56class TaskDetailedController extends BaseController {
    67
     
    1516    static allowedMethods = [save:'POST', update:'POST', restore:'POST', trash:'POST', approve:'POST', renegeApproval:'POST', complete:'POST', reopen:'POST']
    1617
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    1719    def index = { redirect(action: 'search', params: params) }
    1820
     21    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    1922    def list = {
    2023        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100 )
     
    2225    }
    2326
     27    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    2428    def setTaskSearchParamsMax = {
    2529        def max = 1000
     
    3438    }
    3539
     40    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    3641    def search = {
    3742
     
    119124    } // end search()
    120125
     126    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    121127    def searchCalendar = {
    122128        params.max = 30
     
    164170    }
    165171
     172    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    166173    def budget = {
    167174        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100 )
     
    210217    }
    211218
     219    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    212220    def show = {
    213221
     
    400408    }
    401409
     410    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    402411    def complete = {
    403412
     
    425434    }
    426435
     436    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    427437    def reopen = {
    428438
     
    450460    }
    451461
     462    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    452463    def edit = {
    453464
     
    474485    }
    475486
     487    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    476488    def update = {
    477489
     
    493505    }
    494506
     507    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    495508    def create = {
    496509        def taskInstance = new Task()
     
    506519    }
    507520
     521    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    508522    def save = {
    509523        def result = taskService.create(params)
     
    525539    }
    526540
     541    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    527542    def listSubTasks = {
    528543        def parentTaskInstance = Task.get(params.id)
     
    543558    }
    544559
     560    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    545561    def createSubTask = {
    546562        def parentTaskInstance = Task.get(params.id)
Note: See TracChangeset for help on using the changeset viewer.