New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matomo crash when user has view rights #13781
Comments
I can confirm this finding on our installation. User has only view rights for all available sites on the installation. Users with more rights work correctly. |
Olny had a quick look, seems related to segment editor. |
Do you remember if during the update maybe some other plugins were updated as well? Is there any chance that you temporarily edit your |
Sure! Here's the full backtrace:
|
View permission is the correct permission plus it might fix issues like matomo-org/matomo#13781
Cheers @kaplun was hoping it would help a bit more. I'm thinking it might be related to Custom Dimensions. Any chance to disable it temporarily and see if the issue resolves? Making the assumption as I checked all usages of |
I am heavily using custom dimension. If I inactivate the plugin, will the DB be altered? |
Matomo 3.7.0 |
I have released a new version which hopefully fixes the issue. |
Let me know if this is not the case and I'm happy to reopen |
@tsteur 🎉 Well done! It fixed the issue for me. |
With Matomo 3.7.0, if I create a user with only
view
rights and it try to access a site it crashes with:Sorry for the Italian error 😄 The message more or less says: "You can't access this resource because it requires a
write
access for the web site with id=4".This line is the culprit:
https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/CoreHome/templates/getDefaultIndexView.twig#L7
The text was updated successfully, but these errors were encountered: