Merge pull request #4423 from kinglozzer/member-cmsfields

FIX: Hide 'Logged Passwords' tab in member CMS fields (fixes #4422)
This commit is contained in:
Sam Minnée 2015-07-23 13:35:45 +12:00
commit 639ebefa5c

View File

@ -1326,6 +1326,9 @@ class Member extends DataObject implements TemplateGlobalProvider {
// Members are displayed within group edit form in SecurityAdmin
$fields->removeByName('Groups');
// Members shouldn't be able to directly view/edit logged passwords
$fields->removeByName('LoggedPasswords');
if(Permission::check('EDIT_PERMISSIONS')) {
$groupsMap = array();
foreach(Group::get() as $group) {