public void validate()

in teamcity-invitations-plugin-server/src/main/java/org/jetbrains/teamcity/invitations/JoinProjectInvitationType.java [113:119]


    public void validate(@NotNull HttpServletRequest request, @NotNull SProject project, @NotNull ActionErrors errors) {
        super.validate(request, project, errors);
        if (StringUtil.isEmptyOrSpaces(request.getParameter("role")) && StringUtil.isEmptyOrSpaces(request.getParameter("group"))) {
            errors.addError(new InvalidProperty("role", "Either the role or the group must be specified"));
            errors.addError(new InvalidProperty("group", "Either the role or the group must be specified"));
        }
    }