@daylicron opened this Issue on June 18th 2018

We're running a cluster of four Matomo Servers for Load Balancing and Backup. It's running smooth and fine, managed via Puppet.

We're using multi_server_environment=1 in the configs, which works for the marketplace as intended. But someone who needs to work as a admin in Matomo performed a Matomo upgrade via the webinterface, which got us into trouble.

I would like multi_server_environment=1 to disable the Matomo webinterface upgrade as well as plugin installation via marketplace. Actually when you're hovering over the update information, it says that you cannot perform the upgrade. But when you click the information button, the update page says that the upgrade can be performed and allows you to do it.

I tried to get into the code and implement it myself but I didn't even find where multi_server_environment=1 disables the plugin installation...

@daylicron commented on June 25th 2018

Could anyone take a look at this or give me a hint where to take a look?

@mattab commented on June 28th 2018 Member

Hi @daylicron
Thanks for reporting the issue. Respecting the setting is indeed important. It would be great if you could create a Pull Request :+1:

The code may be around these methods: https://github.com/matomo-org/matomo/blob/82a9b1b0a01dc20928d50134233e167f0116472d/core/SettingsPiwik.php#L273-L285 then you'd need to block access to the screens in plugins/CoreUpdater/Controller.php at least oneClickUpdate,oneClickResults, index, runUpdaterAndExit when !isAutoUpdatePossible

Powered by GitHub Issue Mirror