Skip to content

Commit

Permalink
Hide 'All done, thank you' message on reports center for non moderators
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Dec 27, 2024
1 parent 407b561 commit e7d424a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/ReportsCenter/ReportsCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e7d424a

Please sign in to comment.