* Plugin Name: GLM Members Database Leads
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.0.1
+ * Version: 1.0.2
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabaseLeadsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.1
+ * @version 1.0.2
*/
/*
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_LEADS_PLUGIN_VERSION', '1.0.1');
+define('GLM_MEMBERS_LEADS_PLUGIN_VERSION', '1.0.2');
define('GLM_MEMBERS_LEADS_PLUGIN_DB_VERSION', '0.0.7');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
$search_params = unserialize( $result['search'] );
}
}
+ if ( isset( $this->config['loggedInUser']['contactUser'] ) && empty( $this->config['loggedInUser']['contactUser'] ) ) {
+ $user_can_edit_leads = true;
+ }
if ( ( isset( $search ) && $search ) || isset( $search_params ) && $search_params ) {
if ( isset( $search ) && $search ) {
FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "leads
WHERE mail_ok = $mail_ok)";
}
- if ( $this->config['loggedInUser']['contactUser'] ) {
+ if ( isset( $this->config['loggedInUser']['contactUser'] ) && !empty( $this->config['loggedInUser']['contactUser'] ) ) {
$where_parts[] = "T.lead_id IN (
SELECT id
FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "leads
} else {
$leads = '';
$search_params = array(
+ 'mail_ok' => 0,
+ 'member_ok' => 0,
'company' => '',
'contact' => '',
'from_date' => '',