- Affected version
- 2.0.11
In nearly every case when checking report visibility,
\XF\Entity\Report::canView
is called. Except for two locations;\XF\Repository\Report::getModeratorsWhoCanHandleReport
\XF\Repository\Report::filterViewableReports
filterViewableReports()
can just be simplified to calling $reports->filterViewable()