Changeset 1688 for trunk


Ignore:
Timestamp:
Apr 4, 2011, 10:46:29 AM (9 years ago)
Author:
robert@…
Message:

Administrator mails are also sent to administrators on non-production environments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/authentication/UserRegistrationController.groovy

    r1430 r1688  
    130130                // Otherwise, send it to a default (spam) mail address
    131131                def adminMail = "gscfproject@gmail.com";
    132                 if ( GrailsUtil.getEnvironment().equals(GrailsApplication.ENV_PRODUCTION) ) {
     132                if ( !GrailsUtil.getEnvironment().equals(GrailsApplication.ENV_DEVELOPMENT) ) {
    133133                        def administrators = SecRole.findUsers( 'ROLE_ADMIN' );
    134134                        if( administrators.size() > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.