Ignore:
Timestamp:
May 31, 2012, 3:10:23 PM (9 years ago)
Author:
ferryjagers@…
Message:

templateAdmin role, only users with this role are allowed to modify templates.

File:
1 edited

Legend:

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

    r2232 r2240  
    5555                return getAuthorities().contains(SecRole.findByAuthority('ROLE_ADMIN'));
    5656        }
     57
     58    public boolean hasTemplateAdminRights() {
     59        return getAuthorities().contains(SecRole.findByAuthority('ROLE_TEMPLATEADMIN'));
     60    }
    5761       
    5862        /**
Note: See TracChangeset for help on using the changeset viewer.