Skip to content
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

Fix fatal when multiple sites are requested in referrers API report #13439

Merged
merged 2 commits into from Sep 23, 2018

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Sep 17, 2018

fixes #13438

I know the check user has view access calls are not needed since they are checked in the archive classes that we call and it is safe. I got confused there though for a second and I think it is better to have them there in case things get refactored at some point and forgets to add such calls etc. Can remove them again if wanted.

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Sep 17, 2018
@tsteur tsteur added this to the 3.6.1 milestone Sep 17, 2018
@diosmosis
Copy link
Member

Should we add the check view access function to all reporting API methods? Otherwise seems inconsistent, no?

@tsteur
Copy link
Member Author

tsteur commented Sep 20, 2018

Could do... didn't check if it is missing in other APIs. I thought we always added it to all methods and was first time I see them not there.

@diosmosis
Copy link
Member

I think most don't have them. Might be some work to add them to all methods.

@tsteur
Copy link
Member Author

tsteur commented Sep 21, 2018

I'll go over some APIs now

@tsteur
Copy link
Member Author

tsteur commented Sep 21, 2018

done

@diosmosis diosmosis merged commit af9f44c into 3.x-dev Sep 23, 2018
@diosmosis diosmosis deleted the 13438 branch September 23, 2018 22:06
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
…atomo-org#13439)

* Fix fatal when multiple sites are requested in referrers API report

* add more checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal error in referrers report
2 participants