fixing members only sidebar template checking
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Jun 2017 15:30:45 +0000 (11:30 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Jun 2017 15:30:45 +0000 (11:30 -0400)
checking for user to be logged in instead of having member db access privileges

sidebar.php

index 907044e..11a795d 100644 (file)
@@ -1,5 +1,5 @@
 <?php if (get_page_template_slug( $post->ID ) === "members-only-template.php") {  ?>
-    <?php if (current_user_can("glm_members_member")) { ?>
+    <?php if (is_user_logged_in()) { ?>
         <div id="members-only-sidebar" class="show-for-small-up opensearchserver.ignore">
             <div class="row collapse">
                 <h4 class="sidebar-title"> Board Members Only</h4>