Skip to content

Instantly share code, notes, and snippets.

@kuzmany
Last active July 4, 2020 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuzmany/278196d75477bd8c41a5a5773ec31190 to your computer and use it in GitHub Desktop.
Save kuzmany/278196d75477bd8c41a5a5773ec31190 to your computer and use it in GitHub Desktop.
<?php
/*
* @copyright 2020 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
// load basic Mautic security
include_once 'security.php';
// disable upgrade notification
$container->setParameter('mautic.security.disableUpdates', true);
// hide Identify visitor by device fingerprint and Identify visitors by IP options
$myCutomRestrictedConfigFields = [
'api_enable_basic_auth',
'anonymize_ip'
];
$restrictedConfigFields = array_merge($restrictedConfigFields, $myCutomRestrictedConfigFields);
$container->setParameter('mautic.security.restrictedConfigFields', $restrictedConfigFields);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment