Skip to content

Commit

Permalink
MINOR Removed obsolete "add member" button in SecurityAdmin, now hand…
Browse files Browse the repository at this point in the history
…led through GridField (SSF-53)
  • Loading branch information
chillu committed Mar 1, 2012
1 parent aa2e610 commit 3ded12e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions admin/code/SecurityAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 3ded12e

Please sign in to comment.