- Timestamp:
- Apr 5, 2011, 5:01:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/dbnp/configuration/BootStrapAuthentication.groovy
r1635 r1706 29 29 30 30 // create the admin role 31 def adminRole = SecRole.findByAuthority('ROLE_ADMIN') ?: new SecRole(authority: 'ROLE_ADMIN').save(f ailOnError:true)31 def adminRole = SecRole.findByAuthority('ROLE_ADMIN') ?: new SecRole(authority: 'ROLE_ADMIN').save(flush:true, failOnError:true) 32 32 33 33 // iterate through default users, see … … 44 44 userConfirmed: true, 45 45 adminConfirmed: true 46 ).save(f ailOnError: true)46 ).save(flush:true, failOnError: true) 47 47 48 48 // is this user an administrator?
Note: See TracChangeset
for help on using the changeset viewer.