From 61fac5b804df7c8189b6826118724c19983c7ba6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 04:06:59 +0000 Subject: [PATCH] BUGFIX: Fixed cache prepopulation on sitetree load. (from r98651) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99125 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 591a4131..6736d2a7 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -509,7 +509,7 @@ class LeftAndMain extends Controller { if($p = $this->currentPage()) $obj->markToExpose($p); // NOTE: SiteTree/CMSMain coupling :-( - SiteTree::prepopuplate_permission_cache('edit', $obj->markedNodeIDs()); + SiteTree::prepopuplate_permission_cache('CanEditType', $obj->markedNodeIDs()); // getChildrenAsUL is a flexible and complex way of traversing the tree $titleEval = '