From c8f22503fcddc8e6fad61f7a2e07c86a40df0e75 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 05:29:34 +0000 Subject: [PATCH] BUGFIX: Fixed cache prepopulation on sitetree load. (from r98651) (from r99125) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111606 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 65b7e1f5..0519c2b0 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -515,7 +515,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 = '