there will be no members only area
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 15:15:46 +0000 (15:15 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 15:15:46 +0000 (15:15 +0000)
Toolkit/Page.php

index e74f0cc..1ed478c 100755 (executable)
@@ -322,17 +322,6 @@ class Toolkit_Page
      */
     public function fetchPage()
     {
-        if (defined('MEMBERS_DB') && MEMBERS_DB) {
-            // check to see if this page is a member only page
-            $memberOnlyPage = Toolkit_Template_Page::isMemberOnly(
-                $this->_pageGateway, $this->_catid
-            );
-            if ($memberOnlyPage
-                && !strpos($_SERVER['REQUEST_URI'], 'members-only-area')
-            ) {
-                header('Location: ' . $this->getToolboxUrl(MEMBERS_CATEGORY));
-            }
-        }
         $this->pageTitle = $this->_getPageTitle($this->_catid);
 
         $bodyFactory = new Toolkit_Template_Page_BodyFactory(