mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
e6dac14e9a
commit
f2c49f6bff
@ -327,6 +327,14 @@ class Group extends DataObject {
|
|||||||
else return htmlspecialchars($this->Title, ENT_QUOTES);
|
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.
|
* Overloaded to ensure the code is always descent.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user