From: Steve Sutton Date: Mon, 3 Apr 2017 18:15:54 +0000 (-0400) Subject: Need the isModerated check inside of if lockedToMember. X-Git-Tag: v1.6.31^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c4297911b571cc7bef178308d865fe05720d9734;p=WP-Plugins%2Fglm-member-db-events.git Need the isModerated check inside of if lockedToMember. Or else the isModerated won't be set correctly for admin or editor. --- diff --git a/index.php b/index.php index 1712a18..133f90d 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.30 + * Version: 1.6.31 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.30 + * @version 1.6.31 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.30'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.31'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/admin/events/list.php b/models/admin/events/list.php index 0245d05..dfee946 100644 --- a/models/admin/events/list.php +++ b/models/admin/events/list.php @@ -147,8 +147,8 @@ class GlmMembersAdmin_events_list extends GlmDataEvents // Check if there's a logged in user who is locked to their own entity $lockedToMember = apply_filters('glm_members_locked_to_member_id', false); - $isModerated = apply_filters('glm_user_is_moderated', $lockedToMember); if ($lockedToMember) { + $isModerated = apply_filters('glm_user_is_moderated', $lockedToMember); $memberID = $lockedToMember; $this->fields['admin_name']['required'] = true; $this->fields['admin_email']['required'] = true;