Skip to content

Instantly share code, notes, and snippets.

@sminnee
Created February 24, 2010 22:32
Show Gist options
  • Select an option

  • Save sminnee/313958 to your computer and use it in GitHub Desktop.

Select an option

Save sminnee/313958 to your computer and use it in GitHub Desktop.
Index: cms/code/LeftAndMain.php
===================================================================
--- cms/code/LeftAndMain.php (revision 99837)
+++ cms/code/LeftAndMain.php (working copy)
@@ -484,7 +484,7 @@
// NOTE: SiteTree/CMSMain coupling :-(
SiteTree::prepopuplate_permission_cache('edit', $obj->markedNodeIDs());
- SiteTree::prepopuplate_permission_cache('delete', $obj->markedNodeIDs());
+ //SiteTree::prepopuplate_permission_cache('delete', $obj->markedNodeIDs());
// getChildrenAsUL is a flexible and complex way of traversing the tree
$titleEval = '
Index: sapphire/core/model/SiteTree.php
===================================================================
--- sapphire/core/model/SiteTree.php (revision 99837)
+++ sapphire/core/model/SiteTree.php (working copy)
@@ -2197,7 +2197,7 @@
if(!$this->canAddChildren())
$classes .= " nochildren";
-
+/*
if(
!$this->canDelete()
// @todo Temporary workaround for UI-problem: We can't distinguish batch selection for publication from
@@ -2205,7 +2205,7 @@
|| !$this->canPublish()
)
$classes .= " nodelete";
-
+*/
if($controller->isCurrentPage($this))
$classes .= " current";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment