Skip to content

Commit

Permalink
MINOR Added Group->CMSTreeClasses() (required for GroupCsvBulkLoader …
Browse files Browse the repository at this point in the history
…refresh in SecurityAdmin) (from r99801)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105528 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed May 25, 2010
1 parent e6dac14 commit f2c49f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions security/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@ public function getTreeTitle() {
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.
*/
Expand Down

0 comments on commit f2c49f6

Please sign in to comment.