Skip to content

Fix policies for abuse report notes

Hinam Mehra requested to merge anti-abuse/168-fix-note-policies into master

What does this MR do and why?

Screenshots or screen recordings

Before After
before after

How to set up and validate locally

  1. In the rails console, enable the feature flag abuse_report_notes
> Feature.enable(:abuse_report_notes)
  1. Log-in as root and navigate to /admin/abuse_reports and click on any abuse report. If there aren't any abuse reports available, you can create one:
AbuseReport.create(user_id: User.last.id, reporter_id: User.first.id, message: "obvious spam")
  1. Try to add a new comment and then refresh the page.
  2. Then try to edit that comment.
  3. Create another admin user, log-in as that user and navigate to the same abuse report. You should see the comment left by the previous without any edit button next to that comment.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Hinam Mehra

Merge request reports

Loading