mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4423 from kinglozzer/member-cmsfields
FIX: Hide 'Logged Passwords' tab in member CMS fields (fixes #4422)
This commit is contained in:
commit
639ebefa5c
@ -1326,6 +1326,9 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
|||||||
// Members are displayed within group edit form in SecurityAdmin
|
// Members are displayed within group edit form in SecurityAdmin
|
||||||
$fields->removeByName('Groups');
|
$fields->removeByName('Groups');
|
||||||
|
|
||||||
|
// Members shouldn't be able to directly view/edit logged passwords
|
||||||
|
$fields->removeByName('LoggedPasswords');
|
||||||
|
|
||||||
if(Permission::check('EDIT_PERMISSIONS')) {
|
if(Permission::check('EDIT_PERMISSIONS')) {
|
||||||
$groupsMap = array();
|
$groupsMap = array();
|
||||||
foreach(Group::get() as $group) {
|
foreach(Group::get() as $group) {
|
||||||
|
Loading…
Reference in New Issue
Block a user