Restrict member only from adding to event categories.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 27 Nov 2018 19:25:21 +0000 (14:25 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 27 Nov 2018 19:25:21 +0000 (14:25 -0500)
Adding restriction for members only. No new categories.

index.php
views/admin/events/editStatus.html

index a683afc..86fc3b6 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Associate - Events Add-On
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.7.7
+ * Version: 1.7.8
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.7.7
+ * @version 1.7.8
  */
 
 // Check that we're being called by WordPress.
@@ -43,7 +43,7 @@ if (!defined('ABSPATH')) {
  *  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.7.7');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.8');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.10');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 09dbc9e..c2f12dd 100644 (file)
@@ -98,7 +98,9 @@
             <input id="declinedMsg" type="hidden" name="deniedText">
             {* Add new category dialog *}
 
-            <div id="newCategoryButton" class="button button-secondary glm-right">Add a new Category</div>
+            {if !$lockedToMember}
+                <div id="newCategoryButton" class="button button-secondary glm-right">Add a new Category</div>
+            {/if}
             <div id="newCategoryDialog" class="glm-dialog-box" title="Enter a New Category">
                     <table class="glm-admin-table">
                         <tr>