I have the following domain classes:
User hasOne RoleGroup hasMany Role
- Examples:
RoleGroup : Admin, Professional, Customer, ...
Role : ROLE_ACTION_1, ROLE_ACTION_2, ...
How do I check if the User belongs to a specific RoleGroup?
In @Secured I can only insert "ROLE" ... Do I need to include all the ROLEs in the group whenever I want to grant access to a specific group? Is there a viable way to do this?