Ignore:
Timestamp:
Jan 21, 2011, 7:37:02 PM (10 years ago)
Author:
work@…
Message:
  • Resolved part of improvement #225
  • refactored the template model out of GSCF into the GDT (Grails Domain Templates) plugin version 0.0.1
  • still work needs to be done (move template editor into gdt, etcetera)
  • fix template owner
  • some methods are missing from Template, but most of it works
File:
1 edited

Legend:

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

    r1213 r1426  
    55        String username
    66        String password
    7         String email
     7        String email
    88        Date dateCreated
    99        boolean enabled
     
    1111        boolean accountLocked
    1212        boolean passwordExpired
    13         boolean userConfirmed   // True if the user has confirmed his subscription using the link in the email
    14         boolean adminConfirmed  // True if the administrator has confirmed this subscription using the link in the email
     13        boolean userConfirmed   // True if the user has confirmed his subscription using the link in the email
     14        boolean adminConfirmed  // True if the administrator has confirmed this subscription using the link in the email
    1515
    1616        static constraints = {
    1717                username blank: false, unique: true
    1818                password blank: false
    19                 email blank: false
     19                email blank: false
    2020        }
    2121
    2222        static mapping = {
    2323                password column: '`password`'
    24                 enabled formula: 'USER_CONFIRMED AND ADMIN_CONFIRMED'
     24                enabled formula: 'USER_CONFIRMED AND ADMIN_CONFIRMED'
    2525        }
    2626
     
    2929        }
    3030
    31         public boolean equals(Object y)
    32         {
    33                 if( !( y instanceof SecUser ) ) {
     31        public boolean equals(Object y) {
     32                if (!(y instanceof SecUser)) {
    3433                        return false;
    3534                }
     
    4140
    4241        public boolean hasAdminRights() {
    43                 return getAuthorities().contains( SecRole.findByAuthority( 'ROLE_ADMIN' ) );
     42                return getAuthorities().contains(SecRole.findByAuthority('ROLE_ADMIN'));
    4443        }
    4544
Note: See TracChangeset for help on using the changeset viewer.