MINOR Added Group->CMSTreeClasses() (required for GroupCsvBulkLoader refresh in SecurityAdmin)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99801 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-24 03:07:19 +00:00 committed by Sam Minnee
parent 7d88b80bbd
commit 6be8d8b56b

View File

@ -325,6 +325,14 @@ class Group extends DataObject {
else return htmlspecialchars($this->Title, ENT_QUOTES);
}
function CMSTreeClasses($controller) {
$classes = $this->class;
if(!$this->canEdit()) $classes .= " disabled";
return $classes;
}
/**
* Overloaded to ensure the code is always descent.
*/