Changeset 298


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

Set base authorisations on all controllers.

Location:
trunk/grails-app
Files:
23 edited

Legend:

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

    r291 r298  
    100100    * Render the manager view for manager or admin roles.
    101101    */
    102     @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     102    @Secured(['ROLE_AppAdmin', 'ROLE_Manager'])
    103103    def manager = {
    104104    }
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r290 r298  
    22import org.codehaus.groovy.grails.commons.ConfigurationHolder
    33
     4@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    45class AssetDetailedController extends BaseController {
    56
     
    910    def assetService
    1011
    11     def index = { redirect(action:overview,params:params) }
    12 
    1312    // the delete, save and update actions only accept POST requests
    1413    static allowedMethods = [delete:'POST', save:'POST', update:'POST', saveCopy:'POST']
    1514
     15    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     16    def index = { redirect(action:overview,params:params) }
     17
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1619    def overview = {
    1720    }
    1821
    19     @Secured(['ROLE_Manager','ROLE_AppAdmin'])
    2022    def importAssetTree = {
    2123    }
    2224
    23     @Secured(['ROLE_Manager','ROLE_AppAdmin'])
    2425    def importAssetTreeSave = {
    2526        def result = csvService.importAssetTree(request)
     
    3839    * This does not appear to be a problem once deployed to Tomcat.
    3940    */
     41    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    4042    def exportAssetTreeTemplate = {
    4143        response.contentType = ConfigurationHolder.config.grails.mime.types["csv"]
     
    4547    }
    4648
     49    /**
     50    * Export the entire asset tree.
     51    */
     52    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    4753    def exportAssetTree = {
    4854
     
    5561    }
    5662
     63    /**
     64    * List action.
     65    */
     66    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    5767    def list = {
    5868        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    6070    }
    6171
     72    /**
     73    * Search action.
     74    */
     75    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    6276    def search = {
    6377
     
    158172    } // end search()
    159173
     174    /**
     175    * Show action.
     176    */
     177    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    160178    def show = {
    161179
     
    173191    }
    174192
     193    /**
     194    * Delete action.
     195    */
    175196    def delete = {
    176197        def assetInstance = Asset.get( params.id )
     
    192213    }
    193214
     215    /**
     216    * Edit action.
     217    */
    194218    def edit = {
    195219
     
    209233    }
    210234
     235    /**
     236    * Update action.
     237    */
    211238    def update = {
    212239        def assetInstance = Asset.get( params.id )
     
    240267    }
    241268
     269    /**
     270    * Create action.
     271    */
    242272    def create = {
    243273        def result = assetService.create(params)
     
    250280    }
    251281
     282    /**
     283    * Copy action.
     284    */
    252285    def copy = {
    253286        def result = assetService.copy(params)
     
    260293    }
    261294
     295    /**
     296    * Save action.
     297    */
    262298    def save = {
    263299        def result = assetService.save(params)
     
    272308    }
    273309
    274 
     310    /**
     311    * Copy save action.
     312    */
    275313    def saveCopy = {
    276314        def result = assetService.saveCopy(params)
  • trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy

    r293 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class AssetExtendedAttributeDetailedController extends BaseController {
    4 
    5     def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    65
    76    // the delete, save and update actions only accept POST requests
    87    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
     8
     9    def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    910
    1011    def show = {
  • trunk/grails-app/controllers/AssetSubItemDetailedController.groovy

    r285 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class AssetSubItemDetailedController extends BaseController {
    45
    56    def assetSubItemService
    67
    7     def index = { redirect(controller: "assetDetailed", params:params) }
    8 
    98    // the delete, save and update actions only accept POST requests
    109    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1110
     11    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     12    def index = { redirect(controller: "assetDetailed", params:params) }
     13
     14    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1215    def show = {
    1316        def assetSubItemInstance = AssetSubItem.get( params.id )
  • trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy

    r293 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class AssetSubItemExtendedAttributeDetailedController extends BaseController {
    4 
    5     def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    65
    76    // the delete, save and update actions only accept POST requests
    87    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
     8
     9    def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    910
    1011    def show = {
  • trunk/grails-app/controllers/AssignedGroupDetailedController.groovy

    r254 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager'])
    34class AssignedGroupDetailedController extends BaseController {
    45
  • trunk/grails-app/controllers/AssignedPersonDetailedController.groovy

    r255 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager'])
    34class AssignedPersonDetailedController extends BaseController {
    45
  • trunk/grails-app/controllers/BaseController.groovy

    r289 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_AppUser', 'ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_AppUser'])
    44abstract class BaseController {
    55
  • trunk/grails-app/controllers/EntryDetailedController.groovy

    r291 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    34class EntryDetailedController extends BaseController {
    45
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r226 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryItemDetailedController extends BaseController {
    45
     
    78    def inventoryMovementService
    89
    9     def index = { redirect(action:search, params:params) }
    10 
    1110    // the delete, save and update actions only accept POST requests
    1211    static allowedMethods = [delete:'POST', save:'POST', update:'POST', useInventoryItem:'POST']
    1312
     13    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
     14    def index = { redirect(action:search, params:params) }
     15
     16    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1417    def list = {
    1518        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1720    }
    1821
     22    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1923    def search = {
    2024        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    3438    * Simply assigns a passed in task id to a session variable and redirects to search.
    3539    */
     40    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    3641    def findInventoryItemForMovement = {
    3742        if(!params.task?.id) {
     
    4651    }
    4752
     53    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    4854    def show = {
    4955
     
    164170    * Handles the use inventory item form submit in the show view.
    165171    */
     172    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    166173    def useInventoryItem = {
    167174
  • trunk/grails-app/controllers/InventoryLocationDetailedController.groovy

    r178 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryLocationDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
    65
    76    // the delete, save and update actions only accept POST requests
    87    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    98
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
     10    def index = { redirect(action:list,params:params) }
     11
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1519    def show = {
    1620        def inventoryLocationInstance = InventoryLocation.get( params.id )
  • trunk/grails-app/controllers/InventoryMovementDetailedController.groovy

    r226 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
    34class InventoryMovementDetailedController extends BaseController {
    45
    56    def inventoryMovementService
    67
    7     def index = { redirect(action:list,params:params) }
    8 
    98    // the delete, save and update actions only accept POST requests
    109    static allowedMethods = [delete:'POST', save:'POST']
     10
     11    def index = { redirect(action:list,params:params) }
    1112
    1213    def list = {
     
    1516    }
    1617
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1719    def show = {
    1820        def inventoryMovementInstance = InventoryMovement.get( params.id )
     
    2931    * @param params.inventoryItem.id The id of an existing inventory item.
    3032    */
     33    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    3134    def listInventoryMovements = {
    3235        def inventoryItemInstance = InventoryItem.get(params.inventoryItem.id)
  • trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy

    r269 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    34class MaintenanceActionDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
    65
    76    // the delete, save and update actions only accept POST requests
    87    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    98
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     10    def index = { redirect(action:list,params:params) }
     11
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1519    def show = {
    1620        def maintenanceActionInstance = MaintenanceAction.get( params.id )
  • trunk/grails-app/controllers/MaintenancePolicyController.groovy

    r178 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
    34class MaintenancePolicyController extends BaseAppAdminController {
    45   
  • trunk/grails-app/controllers/PictureDetailedController.groovy

    r182 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    34class PictureDetailedController extends BaseController {
    45
  • trunk/grails-app/controllers/SectionDetailedController.groovy

    r289 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class SectionDetailedController extends BaseController {
    55
     
    77    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    88
    9     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1010    def index = { redirect(action:list,params:params) }
    1111
    12     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1313    def list = {
    1414        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1616    }
    1717
    18     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1919    def show = {
    2020        def sectionInstance = Section.get( params.id )
  • trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy

    r288 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class SectionExtendedAttributeDetailedController extends BaseController {
    55   
  • trunk/grails-app/controllers/SiteDetailedController.groovy

    r289 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class SiteDetailedController extends BaseController {
    55
     
    77    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    88
    9     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     9    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1010    def index = { redirect(action:list,params:params) }
    1111
    12     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1313    def list = {
    1414        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1616    }
    1717
    18     @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser'])
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1919    def show = {
    2020        def siteInstance = Site.get( params.id )
  • trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy

    r288 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 @Secured(['ROLE_Manager','ROLE_AppAdmin'])
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
    44class SiteExtendedAttributeDetailedController extends BaseController {
    55   
  • 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)
  • trunk/grails-app/controllers/TaskProcedureDetailedController.groovy

    r178 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager'])
    34class TaskProcedureDetailedController extends BaseController {
    45
     
    1011    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1112
     13    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    1214    def list = {
    1315        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    2325    }
    2426
     27    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    2528    def search = {
    2629        redirect(action:list)
    2730    }
    2831
     32    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    2933    def show = {
    3034
  • trunk/grails-app/controllers/TaskRecurringScheduleDetailedController.groovy

    r213 r298  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager'])
    34class TaskRecurringScheduleDetailedController extends BaseController {
    45
    56    def taskRecurringScheduleService
    67
     8    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    79    def index = { redirect(action:list,params:params) }
    810
     
    1012    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    1113
     14    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    1215    def list = {
    1316        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1518    }
    1619
     20    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    1721    def show = {
    1822        def taskRecurringScheduleInstance = TaskRecurringSchedule.get( params.id )
  • trunk/grails-app/services/CreateDataService.groovy

    r296 r298  
    180180        // Authority #7
    181181        authInstance = new Authority(description:"Inventory User",
    182                                         authority:"ROLE_InvetoryUser")
     182                                        authority:"ROLE_InventoryUser")
    183183        saveAndTest(authInstance)
    184184
Note: See TracChangeset for help on using the changeset viewer.