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:28:51 +0000 (19:28 +0100)
Commit 3dd43f601820dac0d5009c0b06f1501899253b51 introduced a major
performance overhead and is reverted for now.

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

index 99726ab..91f431e 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;
        }