From c4250635bc78084f8397c34bf165fce343734cdf Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 6 Jan 2009 02:46:16 +0000 Subject: [PATCH] BUGFIX Disabling batch selection of pages without publication rights in SiteTree->CMSTreeClasses() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@69747 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 1c53616e2..36da23861 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1674,7 +1674,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid if(!$this->canAddChildren()) $classes .= " nochildren"; - if(!$this->canDelete()) + if( + !$this->canDelete() + // @todo Temporary workaround for UI-problem: We can't distinguish batch selection for publication from + // the delete selection (see http://open.silverstripe.com/ticket/3109 and http://open.silverstripe.com/ticket/3302) + || !$this->canPublish() + ) $classes .= " nodelete"; if($controller->isCurrentPage($this))