BUGFIX Only show "Roles" tab in admin/security if user has APPLY_ROLES permissions (fixes #5258)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101719 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-03-25 22:44:33 +00:00 committed by Sam Minnee
parent fb16cc63f6
commit e507f9488b

View File

@ -81,7 +81,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
)
)
);
if(Permission::check('APPLY_ROLES')) {
$fields->addFieldToTab(
'Root.Roles',
new LiteralField(
@ -96,6 +96,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
)
);
}
}
$actions = new FieldSet(
new FormAction('addmember',_t('SecurityAdmin.ADDMEMBER','Add Member')),