Adjusted member permissions to not be able to chance member categories
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 22 Apr 2016 19:18:18 +0000 (15:18 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 22 Apr 2016 19:18:18 +0000 (15:18 -0400)
views/admin/management/terms.html
views/admin/member/memberInfo.html

index ce74c48..01824b7 100644 (file)
@@ -1,6 +1,6 @@
 {include file='admin/management/header.html'}
         
-    <h2 style="color: blue;">NOTE: Not all of these tems have been integrated into the site yet.</h2>    
+    <h2 style="color: blue;">NOTE: Some of these terms have not yet been integrated into the site templates.</h2>    
         
     <form action="{$thisUrl}?page={$thisPage}" method="post" enctype="multipart/form-data">
         <input type="hidden" name="glm_action" value="terms">
index aeadb42..a129a85 100644 (file)
                 <th>Categories</th>
                 <td class="glm-item-container">
                     <!--  Add new category dialog -->
+
+{if apply_filters('glm_members_menu_members', true)}
                     <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>
                             <input id="newCategorySubmit" type="submit" value="Add new Category">
                     </div>
                     <!-- Category Selection -->
+{if apply_filters('glm_members_menu_members', true)}
                     <select name="categorySelect" id="categorySelect">
         {if $availableCategories}
                         <option id="categoryNone" value=""></option>
                         <option id="" value="">(No Categories Listed - Select "Add a new Category" to the right. )</option>  
         {/if}
                     </select>&nbsp;&nbsp; Select a category to add to box below.<br>
+{/if}
                     <div id="activeCategories" class="glm-dynSelect-box">
                     
         {if isset($memberInfo.fieldData.categories) && $memberInfo.fieldData.categories}
             {foreach from=$memberInfo.fieldData.categories item=c}
                         <div data-id="{$c.id}" class="glm-dynSelect-item glm-members-catgegory"> 
                             {if $c.parent_name != ''}{$c.parent_name}: {/if}{$c.name} 
+{if apply_filters('glm_members_menu_members', true)}                            
                             <span data-id="{$c.id}" class="glm-dynSelect-delete catDelete">X</span>
+{/if}                            
                             <input type="hidden" name="category[{$c.id}]" value="{$c.id}">
                        </div>                    
             {/foreach}