diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index e9d057fd..33b30ecd 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -506,6 +506,10 @@ class LeftAndMain extends Controller { // Ensure current page is exposed if($p = $this->currentPage()) $obj->markToExpose($p); + + // NOTE: SiteTree/CMSMain coupling :-( + SiteTree::prepopuplate_permission_cache('edit', $obj->markedNodeIDs()); + SiteTree::prepopuplate_permission_cache('delete', $obj->markedNodeIDs()); // getChildrenAsUL is a flexible and complex way of traversing the tree $titleEval = '