Permalink
Browse files

MINOR Removed unused SecurityAdmin->deleteitems() method

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92840 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 2d82a2f commit 3a14e1dc5830e48a0db42ac768601fa267e65a16 @chillu chillu committed Nov 21, 2009
Showing with 0 additions and 22 deletions.
  1. +0 −22 code/SecurityAdmin.php
View
@@ -25,7 +25,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
'AddRecordForm',
'MemberForm',
'EditForm',
- 'deleteitems',
);
public function init() {
@@ -228,27 +227,6 @@ public function removememberfromgroup() {
}
/**
- * Delete a number of items
- */
- public function deleteitems() {
- $ids = split(' *, *', $_REQUEST['csvIDs']);
-
- $script = "st = \$('sitetree'); \n";
- foreach($ids as $id) {
- if(is_numeric($id)) {
- $record = DataObject::get_by_id($this->stat('tree_class'), $id);
- if($record && !$record->canDelete()) return Security::permissionFailure($this);
-
- DataObject::delete_by_id($this->stat('tree_class'), $id);
- $script .= "node = st.getTreeNodeByIdx($id); if(node) node.parentTreeNode.removeTreeNode(node); $('Form_EditForm').closeIfSetTo($id); \n";
- }
- }
- FormResponse::add($script);
-
- return FormResponse::respond();
- }
-
- /**
* Return the entire site tree as a nested set of ULs.
* @return string Unordered list <UL> HTML
*/

0 comments on commit 3a14e1d

Please sign in to comment.