Skip to content

Prevent current user from blocking themselves in (the new) abuse reports

Hinam Mehra requested to merge anti-abuse/185-hide-abuse-report-actions into master

What does this MR do and why?

Screenshots or screen recordings

Before After
abuse-report-actions-before abuse-report-actions-after

How to set up and validate locally

  1. Enable feature flag abuse_reports_list
  2. Log-in as any user that is not root.
  3. Go to the admin profile, http://127.0.0.1:3000/root and report the user for abuse.
  4. Log back in as root and navigate to the abuse reports, http://127.0.0.1:3000/admin/abuse_reports.
  5. Open the abuse report, you should not be able to block/ban/delete yourself as an admin.

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