Ignore:
Timestamp:
Jan 24, 2010, 10:21:39 PM (14 years ago)
Author:
gav
Message:

Add custom checkBoxList for personGroups to Person.
Wrap save and update in transactions, tweak role add/remove logic and use a limited role list for non-admin users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/CreateDataService.groovy

    r291 r294  
    143143        def authInstance
    144144
     145        // Authority #1
    145146        authInstance = new Authority(description:"Application Admin, not required for daily use! Grants full admin access to the application.",
    146147                                        authority:"ROLE_AppAdmin")
     
    152153        def authInstance
    153154
     155        // Authority #2
    154156        authInstance = new Authority(description:"Business manager, grants full management access.",
    155157                                        authority:"ROLE_Manager")
    156158        saveAndTest(authInstance)
    157159
    158         // #3
     160        // Authority #3
    159161        authInstance = new Authority(description:"Application User, all application users need this base role to allow login.",
    160162                                        authority:"ROLE_AppUser")
Note: See TracChangeset for help on using the changeset viewer.