mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
4c4b8bb08f
commit
924bb63477
@ -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 <UL> HTML
|
||||
|
Loading…
Reference in New Issue
Block a user