Changeset 91 for trunk/src/grails-app/controllers
- Timestamp:
- Mar 25, 2009, 4:26:43 AM (17 years ago)
- Location:
- trunk/src/grails-app/controllers
- Files:
- 
          - 1 added
- 2 edited
 
 - 
          AppCoreController.groovy (modified) (1 diff)
- 
          EntryDetailedController.groovy (added)
- 
          PersonController.groovy (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
        trunk/src/grails-app/controllers/AppCoreController.groovyr73 r91 42 42 } 43 43 44 @Secured(['ROLE_Manager']) 45 def manager = { 46 } 44 47 45 48 @Secured(['ROLE_AppAdmin']) 
- 
        trunk/src/grails-app/controllers/PersonController.groovyr73 r91 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 @Secured(['ROLE_AppAdmin' ])3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 4 4 class PersonController { 5 5 … … 53 53 //first, delete this person from Persons_Authorities table. 54 54 Authority.findAll().each { it.removeFromPersons(person) } 55 person.delete() 56 flash.message = "Person $params.id deleted." 55 56 // try { 57 person.delete(flush:true) 58 flash.message = "Person $params.id deleted." 59 // } 60 // catch(Exception e) { 61 // flash.message = "Could not delete '$person.loginName' due to database constraints, but all authorities have been removed." 62 // redirect action: edit, id: person.id 63 // } 64 57 65 } 58 66 } 
Note: See TracChangeset
          for help on using the changeset viewer.
      
