Skip to content

Commit

Permalink
Merge pull request online-go#2899 from GreenAsJade/bugfix_report_filter
Browse files Browse the repository at this point in the history
Make sure CMs see their own reports
  • Loading branch information
anoek authored Dec 20, 2024
2 parents c901801 + c1494e2 commit 904a198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/report_manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ class ReportManager extends EventEmitter<Events> {
const quota = preferences.get("moderator.report-quota");
return !quota || this.getHandledTodayCount() < preferences.get("moderator.report-quota")
? this.getAvailableReports()
: [];
: // Always show the user their own reports
this.getAvailableReports().filter(
(report) => report.reporting_user.id === data.get("user").id,
);
}

// Clients should use getEligibleReports
Expand Down

0 comments on commit 904a198

Please sign in to comment.