Skip to content

Instantly share code, notes, and snippets.

@kuzmany
Last active February 19, 2025 17:56
Show Gist options
  • Select an option

  • Save kuzmany/3b47f2427d470f4a51e99552063ce04e to your computer and use it in GitHub Desktop.

Select an option

Save kuzmany/3b47f2427d470f4a51e99552063ce04e to your computer and use it in GitHub Desktop.
<?php
/*
* @copyright 2019 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 = ['track_by_fingerprint', 'track_contact_by_ip'];
$restrictedConfigFields = array_merge($restrictedConfigFields, $myCutomRestrictedConfigFields);
$container->setParameter('mautic.security.restrictedConfigFields', $restrictedConfigFields);
@kuzmany
Copy link
Copy Markdown
Author

kuzmany commented Oct 27, 2019

How to hide settings from configurations in Mautic?

https://mtcextendee.com/2020/02/16/how-to-hide-settings-from-configurations-in-mautic/

Disable upgrade notification in Mautic

Check also blog post: https://mtcextendee.com/2019/10/27/how-to-disable-upgrade-notification-in-mautic/

Do you wanna disable this notification in Mautic?

How to disable it?

  1. Copy security_local.php to app/config/
  2. Clear cache (remove app/cache/prod/ directory)

How to upgrade Mautic?

Suport Mautic Extensions: https://mtcextendee.com/

@troyanvic
Copy link
Copy Markdown

this method works perfectly. thanks!

@Heyram-EEE
Copy link
Copy Markdown

I can't find the path app/cache/prod/ directory, And the notification is also not yet disabled yet

@cipulan
Copy link
Copy Markdown

cipulan commented Jan 12, 2023

Thanks it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment