List<RoleBasedPermission> permissions = permManager.getRoleBasedPermission();
if ( permissions.size() == 0 ) {
RoleBasedPermissionResolver resolver = (RoleBasedPermissionResolver) Component.getInstance( "org.jboss.seam.security.roleBasedPermissionResolver" );
if ( resolver.isEnableRoleBasedAuthorization() ) {
Identity.instance().logout();
throw new AuthorizationException( "This user has no permissions setup." );
}
}
return c.calcCapabilities( permissions,
PREFERENCES );
} else {