Permalink
Browse files

MINOR Removed unused Security->addmember() (see MemberTableField and …

…SecurityAdmin->addtogroup())

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@113280 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu authored and sminnee committed Nov 1, 2010
1 parent f8fd60f commit b31cb6731e5b52633d34010a5610c5bef696141e
Showing with 0 additions and 21 deletions.
  1. +0 −1 code/CMSMain.php
  2. +0 −20 code/SecurityAdmin.php
View
@@ -27,7 +27,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
static $subitem_class = "Member";
static $allowed_actions = array(
- 'addmember',
'addpage',
'buildbrokenlinks',
'canceldraftchangesdialog',
View
@@ -18,7 +18,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
static $allowed_actions = array(
'addgroup',
- 'addmember',
'autocomplete',
'removememberfromgroup',
'savemember',
@@ -362,25 +361,6 @@ function savemember() {
return FormResponse::respond();
}
- function addmember($className=null) {
- $data = $_REQUEST;
- unset($data['ID']);
- if($className == null) $className = $this->stat('subitem_class');
-
- if(!singleton($this->stat('subitem_class'))->canCreate()) return Security::permissionFailure($this);
-
- $record = new $className();
-
- $record->update($data);
- $record->write();
-
- if($data['GroupID']) $record->Groups()->add((int)$data['GroupID']);
-
- FormResponse::add("reloadMemberTableField();");
-
- return FormResponse::respond();
- }
-
/**
* Return the entire site tree as a nested set of ULs.
* @return string Unordered list HTML

0 comments on commit b31cb67

Please sign in to comment.