When an admin is looking at a sub that they don't moderate, the Sub Moderation button appears on their sidebar menu but leads to an empty page of reports. Fix the query in misc.getReports to show reports to admins in that view. Simplify the query built by getReports to only join on SubMod when it is needed.
When an admin is looking at a sub that they don't moderate, the Sub Moderation button appears on their sidebar menu but leads to an empty page of reports. Fix the query in
misc.getReports
to show reports to admins in that view. Simplify the query built bygetReports
to only join onSubMod
when it is needed.