}
public static boolean checkVerificationIsPossible(User agent, Name target) {
- try (GigiPreparedStatement ps = new GigiPreparedStatement("SELECT 1 FROM `notary` where `to`=? and `from`=? and `method` = ? ::`notaryType` AND `deleted` IS NULL AND `when` > (now() - interval '1 days' * ?)")) {
+ try (GigiPreparedStatement ps = new GigiPreparedStatement("SELECT 1 FROM `notary` where `to`=? and `from`=? and `method` = ? ::`notaryType` AND `deleted` IS NULL AND `when` > (now() - interval '1 days' * ?::INTEGER)")) {
ps.setInt(1, target.getId());
ps.setInt(2, agent.getId());
ps.setEnum(3, VerificationType.FACE_TO_FACE);
}
}
- public static final Group AGENT_BLOCKED = Group.BLOCKEDASSURER;
+ public static final Group AGENT_BLOCKED = Group.BLOCKED_AGENT;
- public static final Group APPLICANT_BLOCKED = Group.BLOCKEDASSUREE;
+ public static final Group APPLICANT_BLOCKED = Group.BLOCKED_APPLICANT;
public static final Group VERIFY_NOTIFICATION = Group.VERIFY_NOTIFICATION;
}
if (t == VerificationType.NUCLEUS) {
- if ( !agent.isInGroup(Group.NUCLEUS_ASSURER)) {
+ if ( !agent.isInGroup(Group.NUCLEUS_AGENT)) {
throw new GigiApiException("RA Agent needs to be Nucleus RA Agent.");
}
return;
} else if (t == VerificationType.TTP_ASSISTED) {
- if ( !agent.isInGroup(Group.TTP_ASSURER)) {
+ if ( !agent.isInGroup(Group.TTP_AGENT)) {
throw new GigiApiException("RA Agent needs to be TTP RA Agent.");
}
if ( !applicant.isInGroup(Group.TTP_APPLICANT)) {