Update case for lock to member to edit their profile
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 6 Aug 2018 17:44:20 +0000 (13:44 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 6 Aug 2018 17:44:20 +0000 (13:44 -0400)
Need only check on edit only contact here.

index.php
setup/adminHooks.php

index 0798892..660b280 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.10.35
+ * Version: 2.10.36
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.35
+ * @version 2.10.36
  */
 
 $GLOBALS['glmAssociateMemTracker'] = memory_get_usage();
@@ -47,7 +47,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.35');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.36');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.37');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index 61e1376..2886dbd 100644 (file)
@@ -171,7 +171,7 @@ if ( isset( $config ) && isset( $config['settings'] ) && $config['settings']['en
     $enable_contact_edit_only = $config['settings']['enable_contact_edit_only'];
 
     // Add member widgets
-    if ( !$enable_contact_edit_only && !$lockedToMember ) {
+    if ( !$enable_contact_edit_only ) {
         add_filter(
             'glm-member-db-dashboard-member-widgets',
             function ( $member = null ) {