Ignore:
Timestamp:
Jun 24, 2011, 12:56:22 PM (11 years ago)
Author:
robert@…
Message:

Updated module notification so that it also sends authentication to modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/authentication/SecUser.groovy

    r1584 r1939  
    4242                return getAuthorities().contains(SecRole.findByAuthority('ROLE_ADMIN'));
    4343        }
     44       
     45        /**
     46         * Delete all remote logins for this user as well.
     47         */
     48        def beforeDelete = {
     49                executeUpdate( "DELETE FROM SessionAuthenticatedUser sau WHERE sau.secUser = :secUser", [ "secUser": this ] );
     50        }
    4451}
Note: See TracChangeset for help on using the changeset viewer.