public void validatePreviousPermissions(ValidationErrors ignore) {
String[] aTaxPayer = getParam("taxPayer").split(",");
try {
connect();
for (int t=0; t<aTaxPayer.length; t++) {
TaxPayer oTxp = new TaxPayer (getSession().getDms(), aTaxPayer[t]);
ArrayList<User> aAlu = oTxp.allowedUsers(getSession());
for (int e=0; e<=6; e++) {
final String sEmail = getParam("email["+String.valueOf(e)+"]","").trim().toLowerCase();
if (sEmail.trim().length()>0) {
try {
User.forEmail(sEmail);
for (User u : aAlu) {
if (u.getEmail().equals(sEmail))
addError(new LocalizableError("com.zesped.action.SendInvitations.user.alreadyAuthorized",sEmail,oTxp.getBusinessName()));
}
} catch (ElementNotFoundException enfe) { }
}
} // next
} // next