Permalink
Browse files

MINOR Removed obsolete "add member" button in SecurityAdmin, now hand…

…led through GridField (SSF-53)
  • Loading branch information...
1 parent aa2e610 commit 3ded12e599921f6ca8aa8a7aece75a4bd975edcd @chillu chillu committed Mar 1, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 admin/code/SecurityAdmin.php
@@ -79,12 +79,6 @@ public function getEditForm($id = null, $fields = null) {
);
}
- $form->Actions()->insertBefore(
- $actionAddMember = new FormAction('addmember',_t('SecurityAdmin.ADDMEMBER','Add Member')),
- 'action_save'
- );
- $actionAddMember->setForm($form);
-
// Filter permissions
$permissionField = $form->Fields()->dataFieldByName('Permissions');
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
@@ -160,9 +154,7 @@ function RootForm() {
$rolesTab->push($rolesCTF);
}
- $actions = new FieldList(
- new FormAction('addmember',_t('SecurityAdmin.ADDMEMBER','Add Member'))
- );
+ $actions = new FieldList();
$this->extend('updateRootFormFields', $fields, $actions);

0 comments on commit 3ded12e

Please sign in to comment.