- Timestamp:
- Jan 25, 2010, 2:14:48 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r291 r298 100 100 * Render the manager view for manager or admin roles. 101 101 */ 102 @Secured(['ROLE_ Manager','ROLE_AppAdmin'])102 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 103 103 def manager = { 104 104 } -
trunk/grails-app/controllers/AssetDetailedController.groovy
r290 r298 2 2 import org.codehaus.groovy.grails.commons.ConfigurationHolder 3 3 4 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 4 5 class AssetDetailedController extends BaseController { 5 6 … … 9 10 def assetService 10 11 11 def index = { redirect(action:overview,params:params) }12 13 12 // the delete, save and update actions only accept POST requests 14 13 static allowedMethods = [delete:'POST', save:'POST', update:'POST', saveCopy:'POST'] 15 14 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']) 16 19 def overview = { 17 20 } 18 21 19 @Secured(['ROLE_Manager','ROLE_AppAdmin'])20 22 def importAssetTree = { 21 23 } 22 24 23 @Secured(['ROLE_Manager','ROLE_AppAdmin'])24 25 def importAssetTreeSave = { 25 26 def result = csvService.importAssetTree(request) … … 38 39 * This does not appear to be a problem once deployed to Tomcat. 39 40 */ 41 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 40 42 def exportAssetTreeTemplate = { 41 43 response.contentType = ConfigurationHolder.config.grails.mime.types["csv"] … … 45 47 } 46 48 49 /** 50 * Export the entire asset tree. 51 */ 52 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 47 53 def exportAssetTree = { 48 54 … … 55 61 } 56 62 63 /** 64 * List action. 65 */ 66 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 57 67 def list = { 58 68 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 60 70 } 61 71 72 /** 73 * Search action. 74 */ 75 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 62 76 def search = { 63 77 … … 158 172 } // end search() 159 173 174 /** 175 * Show action. 176 */ 177 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 160 178 def show = { 161 179 … … 173 191 } 174 192 193 /** 194 * Delete action. 195 */ 175 196 def delete = { 176 197 def assetInstance = Asset.get( params.id ) … … 192 213 } 193 214 215 /** 216 * Edit action. 217 */ 194 218 def edit = { 195 219 … … 209 233 } 210 234 235 /** 236 * Update action. 237 */ 211 238 def update = { 212 239 def assetInstance = Asset.get( params.id ) … … 240 267 } 241 268 269 /** 270 * Create action. 271 */ 242 272 def create = { 243 273 def result = assetService.create(params) … … 250 280 } 251 281 282 /** 283 * Copy action. 284 */ 252 285 def copy = { 253 286 def result = assetService.copy(params) … … 260 293 } 261 294 295 /** 296 * Save action. 297 */ 262 298 def save = { 263 299 def result = assetService.save(params) … … 272 308 } 273 309 274 310 /** 311 * Copy save action. 312 */ 275 313 def saveCopy = { 276 314 def result = assetService.saveCopy(params) -
trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy
r293 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 3 4 class AssetExtendedAttributeDetailedController extends BaseController { 4 5 def index = { redirect(controller: "assetDetailed", action: "search", params:params) }6 5 7 6 // the delete, save and update actions only accept POST requests 8 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 8 9 def index = { redirect(controller: "assetDetailed", action: "search", params:params) } 9 10 10 11 def show = { -
trunk/grails-app/controllers/AssetSubItemDetailedController.groovy
r285 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 3 4 class AssetSubItemDetailedController extends BaseController { 4 5 5 6 def assetSubItemService 6 7 7 def index = { redirect(controller: "assetDetailed", params:params) }8 9 8 // the delete, save and update actions only accept POST requests 10 9 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 11 10 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']) 12 15 def show = { 13 16 def assetSubItemInstance = AssetSubItem.get( params.id ) -
trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy
r293 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 3 4 class AssetSubItemExtendedAttributeDetailedController extends BaseController { 4 5 def index = { redirect(controller: "assetDetailed", action: "search", params:params) }6 5 7 6 // the delete, save and update actions only accept POST requests 8 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 8 9 def index = { redirect(controller: "assetDetailed", action: "search", params:params) } 9 10 10 11 def show = { -
trunk/grails-app/controllers/AssignedGroupDetailedController.groovy
r254 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 3 4 class AssignedGroupDetailedController extends BaseController { 4 5 -
trunk/grails-app/controllers/AssignedPersonDetailedController.groovy
r255 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 3 4 class AssignedPersonDetailedController extends BaseController { 4 5 -
trunk/grails-app/controllers/BaseController.groovy
r289 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_App User', 'ROLE_AppAdmin'])3 @Secured(['ROLE_AppAdmin', 'ROLE_AppUser']) 4 4 abstract class BaseController { 5 5 -
trunk/grails-app/controllers/EntryDetailedController.groovy
r291 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 3 4 class EntryDetailedController extends BaseController { 4 5 -
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r226 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager']) 3 4 class InventoryItemDetailedController extends BaseController { 4 5 … … 7 8 def inventoryMovementService 8 9 9 def index = { redirect(action:search, params:params) }10 11 10 // the delete, save and update actions only accept POST requests 12 11 static allowedMethods = [delete:'POST', save:'POST', update:'POST', useInventoryItem:'POST'] 13 12 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']) 14 17 def list = { 15 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 17 20 } 18 21 22 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 19 23 def search = { 20 24 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 34 38 * Simply assigns a passed in task id to a session variable and redirects to search. 35 39 */ 40 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 36 41 def findInventoryItemForMovement = { 37 42 if(!params.task?.id) { … … 46 51 } 47 52 53 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 48 54 def show = { 49 55 … … 164 170 * Handles the use inventory item form submit in the show view. 165 171 */ 172 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 166 173 def useInventoryItem = { 167 174 -
trunk/grails-app/controllers/InventoryLocationDetailedController.groovy
r178 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager']) 3 4 class InventoryLocationDetailedController extends BaseController { 4 5 def index = { redirect(action:list,params:params) }6 5 7 6 // the delete, save and update actions only accept POST requests 8 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 8 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']) 10 13 def list = { 11 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 13 16 } 14 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 15 19 def show = { 16 20 def inventoryLocationInstance = InventoryLocation.get( params.id ) -
trunk/grails-app/controllers/InventoryMovementDetailedController.groovy
r226 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager']) 3 4 class InventoryMovementDetailedController extends BaseController { 4 5 5 6 def inventoryMovementService 6 7 7 def index = { redirect(action:list,params:params) }8 9 8 // the delete, save and update actions only accept POST requests 10 9 static allowedMethods = [delete:'POST', save:'POST'] 10 11 def index = { redirect(action:list,params:params) } 11 12 12 13 def list = { … … 15 16 } 16 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 17 19 def show = { 18 20 def inventoryMovementInstance = InventoryMovement.get( params.id ) … … 29 31 * @param params.inventoryItem.id The id of an existing inventory item. 30 32 */ 33 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 31 34 def listInventoryMovements = { 32 35 def inventoryItemInstance = InventoryItem.get(params.inventoryItem.id) -
trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy
r269 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager']) 3 4 class MaintenanceActionDetailedController extends BaseController { 4 5 def index = { redirect(action:list,params:params) }6 5 7 6 // the delete, save and update actions only accept POST requests 8 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 8 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']) 10 13 def list = { 11 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 13 16 } 14 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 15 19 def show = { 16 20 def maintenanceActionInstance = MaintenanceAction.get( params.id ) -
trunk/grails-app/controllers/MaintenancePolicyController.groovy
r178 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 3 4 class MaintenancePolicyController extends BaseAppAdminController { 4 5 -
trunk/grails-app/controllers/PictureDetailedController.groovy
r182 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 3 4 class PictureDetailedController extends BaseController { 4 5 -
trunk/grails-app/controllers/SectionDetailedController.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 SectionDetailedController 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 sectionInstance = Section.get( params.id ) -
trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy
r288 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 SectionExtendedAttributeDetailedController extends BaseController { 5 5 -
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 ) -
trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy
r288 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 SiteExtendedAttributeDetailedController extends BaseController { 5 5 -
trunk/grails-app/controllers/TaskDetailedController.groovy
r291 r298 3 3 import com.zeddware.grails.plugins.filterpane.FilterUtils 4 4 5 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 5 6 class TaskDetailedController extends BaseController { 6 7 … … 15 16 static allowedMethods = [save:'POST', update:'POST', restore:'POST', trash:'POST', approve:'POST', renegeApproval:'POST', complete:'POST', reopen:'POST'] 16 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 17 19 def index = { redirect(action: 'search', params: params) } 18 20 21 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 19 22 def list = { 20 23 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100 ) … … 22 25 } 23 26 27 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 24 28 def setTaskSearchParamsMax = { 25 29 def max = 1000 … … 34 38 } 35 39 40 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 36 41 def search = { 37 42 … … 119 124 } // end search() 120 125 126 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 121 127 def searchCalendar = { 122 128 params.max = 30 … … 164 170 } 165 171 172 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 166 173 def budget = { 167 174 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100 ) … … 210 217 } 211 218 219 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 212 220 def show = { 213 221 … … 400 408 } 401 409 410 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 402 411 def complete = { 403 412 … … 425 434 } 426 435 436 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 427 437 def reopen = { 428 438 … … 450 460 } 451 461 462 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 452 463 def edit = { 453 464 … … 474 485 } 475 486 487 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 476 488 def update = { 477 489 … … 493 505 } 494 506 507 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 495 508 def create = { 496 509 def taskInstance = new Task() … … 506 519 } 507 520 521 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 508 522 def save = { 509 523 def result = taskService.create(params) … … 525 539 } 526 540 541 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 527 542 def listSubTasks = { 528 543 def parentTaskInstance = Task.get(params.id) … … 543 558 } 544 559 560 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 545 561 def createSubTask = { 546 562 def parentTaskInstance = Task.get(params.id) -
trunk/grails-app/controllers/TaskProcedureDetailedController.groovy
r178 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 3 4 class TaskProcedureDetailedController extends BaseController { 4 5 … … 10 11 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 11 12 13 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 12 14 def list = { 13 15 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 23 25 } 24 26 27 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 25 28 def search = { 26 29 redirect(action:list) 27 30 } 28 31 32 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 29 33 def show = { 30 34 -
trunk/grails-app/controllers/TaskRecurringScheduleDetailedController.groovy
r213 r298 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 3 4 class TaskRecurringScheduleDetailedController extends BaseController { 4 5 5 6 def taskRecurringScheduleService 6 7 8 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 7 9 def index = { redirect(action:list,params:params) } 8 10 … … 10 12 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 11 13 14 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 12 15 def list = { 13 16 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 15 18 } 16 19 20 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 17 21 def show = { 18 22 def taskRecurringScheduleInstance = TaskRecurringSchedule.get( params.id ) -
trunk/grails-app/services/CreateDataService.groovy
r296 r298 180 180 // Authority #7 181 181 authInstance = new Authority(description:"Inventory User", 182 authority:"ROLE_Inve toryUser")182 authority:"ROLE_InventoryUser") 183 183 saveAndTest(authInstance) 184 184
Note: See TracChangeset
for help on using the changeset viewer.