ENHANCEMENT Use of Object::create('GridField') for Roles grid in

SecurityAdmin, to be consistent with Members and Groups grid
instantiation.
MINOR Removing comments referring to CTF
This commit is contained in:
Sean Harvey 2012-03-26 14:51:40 +13:00
parent 28574e469a
commit fd7f2eb469

View File

@ -104,19 +104,14 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
// Add roles editing interface
if(Permission::check('APPLY_ROLES')) {
$rolesField = new GridField(
$rolesField = Object::create('GridField',
'Roles',
false,
DataList::create('PermissionRole'),
GridFieldConfig_RecordEditor::create()
);
// $rolesCTF->setPermissions(array('add', 'edit', 'delete'));
$rolesTab = $fields->findOrMakeTab('Root.Roles', _t('SecurityAdmin.TABROLES', 'Roles'));
$rolesTab->push(new LiteralField(
'RolesDescription',
''
));
$rolesTab->push($rolesField);
}