Skip to content

Commit

Permalink
Make sure CMs see their own reports
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAsJade committed Dec 20, 2024
1 parent d278693 commit c1494e2
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 c1494e2

Please sign in to comment.