Changeset 1706


Ignore:
Timestamp:
Apr 5, 2011, 5:01:13 PM (6 years ago)
Author:
work@…
Message:
  • sometimes authentication bootstrap users are not available, flushing inserts now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/dbnp/configuration/BootStrapAuthentication.groovy

    r1635 r1706  
    2929
    3030                // create the admin role
    31                 def adminRole = SecRole.findByAuthority('ROLE_ADMIN') ?: new SecRole(authority: 'ROLE_ADMIN').save(failOnError:true)
     31                def adminRole = SecRole.findByAuthority('ROLE_ADMIN') ?: new SecRole(authority: 'ROLE_ADMIN').save(flush:true, failOnError:true)
    3232
    3333                // iterate through default users, see
     
    4444                                        userConfirmed: true,
    4545                                        adminConfirmed: true
    46                                 ).save(failOnError: true)
     46                                ).save(flush:true, failOnError: true)
    4747
    4848                                // is this user an administrator?
Note: See TracChangeset for help on using the changeset viewer.