MINOR Removed obsolete "add member" button in SecurityAdmin, now handled through GridField (SSF-53)

This commit is contained in:
Ingo Schommer 2012-03-01 17:06:30 +01:00
parent aa2e610a20
commit 3ded12e599

View File

@ -79,12 +79,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
);
}
$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 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$rolesTab->push($rolesCTF);
}
$actions = new FieldList(
new FormAction('addmember',_t('SecurityAdmin.ADDMEMBER','Add Member'))
);
$actions = new FieldList();
$this->extend('updateRootFormFields', $fields, $actions);