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!
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.
[ ] Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
[ ] Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
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