FIX: Hide 'Logged Passwords' tab in member CMS fields (fixes #4422)

This commit is contained in:
Loz Calver 2015-07-22 14:39:56 +01:00
parent cd560eee12
commit b7480b92a9

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) {