@tsteur opened this Pull Request on August 28th 2019 Member
  • Let a user customise from where to load the config file by specifying a function in $matomoDir/bootstrap.php like $GLOBALS['CONFIG_INI_PATH_RESOLVER'] = function () {return 'pathOutsideMatomo'};
  • New config to disallow editing users (useful when syncing users)
  • New config to disallow editing sites (useful when syncing sites)
  • Configurable misc/user folder for GeoIP... this way you can have the geoIP DB outside a Matomo directory
  • A new event 'Config.beforeSave' see documentation to prevent saving some sensitive data in the config. It is also eg useful for https://github.com/matomo-org/plugin-EnvironmentVariables where you would want to prevent saving any potentially sensitive value to the database that is set through an environment variable. Say you set the database password through an environment variable, then you would want to prevent that the password is written to the config file next time the config is saved

These changes were needed for some new feature we're working on. Besides the config files and the new event we wouldn't document the other features I suppose. Could potentially add some tests for disable user/site admin but not sure if needed. Think we're not doing it so far for other areas? And it's quite straight forward but could add some if needed.

This Pull Request was closed on September 13th 2019
Powered by GitHub Issue Mirror