From 7e54fc1fc2f0028b0dd4d2e3073afb8a72af44da Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:13:19 +0000 Subject: [PATCH] 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 --- security/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Group.php b/security/Group.php index 28074bee6..7d01f27a0 100644 --- a/security/Group.php +++ b/security/Group.php @@ -100,7 +100,7 @@ class Group extends DataObject { $fields->removeFieldFromTab('Root', 'Permissions'); $fields->removeFieldFromTab('Root', 'IP Addresses'); } - + if(Permission::check('EDIT_PERMISSIONS') && DataObject::get('PermissionRole')) { $fields->addFieldToTab(_t('SecurityAdmin.ROLES', 'Roles'), new LiteralField(