- if ( !agent.isInGroup(Group.TTP_AGENT)) {
- throw new GigiApiException("RA Agent needs to be TTP RA Agent.");
+ if ( !agent.isInGroup(Group.TTP_AGENT) || !agent.hasValidTTPAgentChallenge()) {
+ throw new GigiApiException("RA Agent needs to be TTP RA Agent and have a valid TTP RA Agent Challenge.");