matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.89k stars 2.65k forks source link

Require Write access for adding annotations in UI #22604

Closed sgiehl closed 1 month ago

sgiehl commented 1 month ago

Description:

The 'Write' permission has already been introduce a long time ago. Nevertheless we forgot to restrict writing Annotations. This PR will in a first step adjust the UI, so it won't show the annotation form for users without 'Write' permission.

In a follow-up PR we will also adjust the API to reflect this change. As changing the API is considered a breaking change, this will be done with the next major release.

fixes https://github.com/matomo-org/matomo/issues/20716

Review