From e7d424a564cc266e49f3a221d8d67a4231b906de Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 27 Dec 2024 07:27:48 -0700 Subject: [PATCH] Hide 'All done, thank you' message on reports center for non moderators --- src/views/ReportsCenter/ReportsCenter.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/ReportsCenter/ReportsCenter.tsx b/src/views/ReportsCenter/ReportsCenter.tsx index 077962f6ce..d90ccdc35c 100644 --- a/src/views/ReportsCenter/ReportsCenter.tsx +++ b/src/views/ReportsCenter/ReportsCenter.tsx @@ -75,7 +75,10 @@ export function ReportsCenter(): JSX.Element | null { const report_id = parseInt(params["report_id"] || "0"); const category = params["category"] || "all"; - const [report_quota] = usePreference("moderator.report-quota"); + let [report_quota] = usePreference("moderator.report-quota"); + if (!user.is_moderator && !user.moderator_powers) { + report_quota = 0; + } const reports = report_manager.getEligibleReports();