mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed obsolete "add member" button in SecurityAdmin, now handled through GridField (SSF-53)
This commit is contained in:
parent
aa2e610a20
commit
3ded12e599
@ -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
|
// Filter permissions
|
||||||
$permissionField = $form->Fields()->dataFieldByName('Permissions');
|
$permissionField = $form->Fields()->dataFieldByName('Permissions');
|
||||||
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
|
if($permissionField) $permissionField->setHiddenPermissions(self::$hidden_permissions);
|
||||||
@ -160,9 +154,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
$rolesTab->push($rolesCTF);
|
$rolesTab->push($rolesCTF);
|
||||||
}
|
}
|
||||||
|
|
||||||
$actions = new FieldList(
|
$actions = new FieldList();
|
||||||
new FormAction('addmember',_t('SecurityAdmin.ADDMEMBER','Add Member'))
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->extend('updateRootFormFields', $fields, $actions);
|
$this->extend('updateRootFormFields', $fields, $actions);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user