MINOR Removed unused SecurityAdmin->removememberfromgroup() (see MemberTableField) (from r113279)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@113307 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-11-01 03:11:51 +00:00 committed by Sam Minnee
parent 4c4b8bb08f
commit 924bb63477

View File

@ -183,20 +183,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
return FormResponse::respond(); return FormResponse::respond();
} }
public function removememberfromgroup() {
$groupID = $this->urlParams['ID'];
$memberID = $this->urlParams['OtherID'];
if(is_numeric($groupID) && is_numeric($memberID)) {
$member = DataObject::get_by_id('Member', (int) $memberID);
$member->Groups()->remove((int)$groupID);
FormResponse::add("reloadMemberTableField();");
} else {
user_error("SecurityAdmin::removememberfromgroup: Bad parameters: Group=$groupID, Member=$memberID", E_USER_ERROR);
}
return FormResponse::respond();
}
/** /**
* Return the entire site tree as a nested set of ULs. * Return the entire site tree as a nested set of ULs.
* @return string Unordered list <UL> HTML * @return string Unordered list <UL> HTML