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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105528 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 02:59:41 +00:00
parent e6dac14e9a
commit f2c49f6bff

View File

@ -327,6 +327,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.
*/