From 924bb63477d3a2038ce36ec46cba4bc59d0c55ed Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 1 Nov 2010 03:11:51 +0000 Subject: [PATCH] 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 --- code/SecurityAdmin.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 2f656fd9..7c864842 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -183,20 +183,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { 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 string Unordered list