else if (null != wpa.getApiKey()) {
// Change or create API key
// Only admins can do this:
if (null != personIdStr) { // (this is != null iff user isn't admin)
// Check security settings
PropertiesManager pm = new PropertiesManager();
if (pm.getHarvestSecurity()) {
rp.setResponse(new ResponseObject("WP Update User",false,"You must be admin in secure mode to set an API key"));
return rp;
}
}//TESTED (admin, admin-enabled, non-admin - harvest.secure on and off)