Added feature #5588: Add linkAccessRestrictedPages property to typolink function...
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 20:10:50 +0000 (20:10 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 20:10:50 +0000 (20:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2387 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 568f99e..e3f8cbb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
        * Fix in indexed search: List of indexed pages could be broken if mutli-byte chars are cut in the middle (patch by Karsten Dambekalns)
        * Make field selection work in browse_links.php popup (patch by Christian Jul Jensen)
        * Fixed bug #5094: Record alt_label was not processed (patch by Volker Graubaum and Thomas Hempel)
+       * Added feature #5588: Add "linkAccessRestrictedPages" property to typolink function (patch by Franz Holzinger)
 
 2007-07-02  Oliver Hader  <oh@inpublica.de>
 
index ad51f2b..704aa19 100755 (executable)
@@ -5169,8 +5169,14 @@ class tslib_cObj {
                                                $link_param = $GLOBALS['TSFE']->sys_page->getPageIdFromAlias($link_param);
                                        }
 
+                                               // Link to page even if access is missing?
+                                       if (strlen($conf['linkAccessRestrictedPages'])) {
+                                               $disableGroupAccessCheck = ($conf['linkAccessRestrictedPages'] ? TRUE : FALSE);
+                                       } else {
+                                               $disableGroupAccessCheck = ($GLOBALS['TSFE']->config['config']['typolinkLinkAccessRestrictedPages'] ? TRUE : FALSE);
+                                       }
+
                                                // Looking up the page record to verify its existence:
-                                       $disableGroupAccessCheck = $GLOBALS['TSFE']->config['config']['typolinkLinkAccessRestrictedPages'] ? TRUE : FALSE;
                                        $page = $GLOBALS['TSFE']->sys_page->getPage($link_param,$disableGroupAccessCheck);
 
                                        if (count($page))       {