if (!authorizedToCA(admin, data.getCAId())) {
if (!authorizedToCA(admin, data.getCaId())) {
    public Collection findUserByEmail(Admin admin, String email) throws AuthorizationDeniedException {        debug(">findUserByEmail(" + email + ")");        debug("Looking for user with email: " + email);        ArrayList returnval = new ArrayList();        Collection result = null;        try {            result = home.findBySubjectEmail(email);        } catch (FinderException e) {            log.debug("Cannot find user with Email='" + email + "'");        }        Iterator iter = result.iterator();        while (iter.hasNext()) {            UserDataLocal data = (UserDataLocal) iter.next();            if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) {                // Check if administrator is authorized to view user.                if (!authorizedToEndEntityProfile(admin, data.getEndEntityProfileId(), AvailableAccessRules.VIEW_RIGHTS))                    break;            }            if (!authorizedToCA(admin, data.getCAId())) {                break;            }            UserAdminData user = new UserAdminData(data.getUsername(), data.getSubjectDN(), data.getCAId(), data.getSubjectAltName(), data.getSubjectEmail(), data.getStatus()                    , data.getType(), data.getEndEntityProfileId(), data.getCertificateProfileId()                    , new java.util.Date(data.getTimeCreated()), new java.util.Date(data.getTimeModified())                    , data.getTokenType(), data.getHardTokenIssuerId());            user.setPassword(data.getClearPassword());            returnval.add(user);        }        debug("<findUserByEmail(" + email + ")");        return returnval;    } // findUserBySubjectDN