BUGFIX: Fix error when adding roles tab (from r86997)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89172 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-15 22:13:19 +00:00
parent 03221dce35
commit 7e54fc1fc2

View File

@ -100,7 +100,7 @@ class Group extends DataObject {
$fields->removeFieldFromTab('Root', 'Permissions'); $fields->removeFieldFromTab('Root', 'Permissions');
$fields->removeFieldFromTab('Root', 'IP Addresses'); $fields->removeFieldFromTab('Root', 'IP Addresses');
} }
if(Permission::check('EDIT_PERMISSIONS') && DataObject::get('PermissionRole')) { if(Permission::check('EDIT_PERMISSIONS') && DataObject::get('PermissionRole')) {
$fields->addFieldToTab(_t('SecurityAdmin.ROLES', 'Roles'), $fields->addFieldToTab(_t('SecurityAdmin.ROLES', 'Roles'),
new LiteralField( new LiteralField(