Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…led through GridField (SSF-53)
  • Loading branch information...
commit 3ded12e599921f6ca8aa8a7aece75a4bd975edcd 1 parent aa2e610
@chillu chillu authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 admin/code/SecurityAdmin.php
View
10 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);
Please sign in to comment.
Something went wrong with that request. Please try again.