Revert "[BUGFIX] showAccessRestrictedPages doesn't replace links to restricted subpages"
authorHelmut Hummel <typo3@helmut-hummel.de>
Sun, 11 Mar 2012 20:13:41 +0000 (21:13 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 18 Mar 2012 18:42:00 +0000 (19:42 +0100)
Commit 94feeb2596244bc463afd428aab41353eb1740a4 introduced a major
performance overhead and is reverted for now.

Change-Id: Iaaa8895bf2ccfcf875b32e3d0773c111672e80ae
Releases: 4.8, 4.7, 4.6, 4.5
Resolves: #32756
Reviewed-on: http://review.typo3.org/9732
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/class.tslib_fe.php

index 6cf3a30..a801ba8 100644 (file)
                if(!is_array($groupList)) {
                        $groupList = explode(',', $groupList);
                }
-
-                       // If the actual page has no fe_group, check the rootline for
-                       // inherited fe_group due to extendToSubpage-property
-               if (isset($row['uid']) && intval($row['fe_group']) === 0) {
-                       $rootLine = $this->sys_page->getRootLine($row['uid']);
-                       foreach ($rootLine as $pageConf) {
-                               if ($pageConf['fe_group'] != '' && $pageConf['extendToSubpages'] == 1) {
-                                       $row['fe_group'] = $pageConf['fe_group'];
-                                       break;
-                               }
-                       }
-               }
-
                $pageGroupList = explode(',', $row['fe_group'] ? $row['fe_group'] : 0);
                return count(array_intersect($groupList, $pageGroupList)) > 0;
        }