mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
28574e469a
commit
fd7f2eb469
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user