# FIX: review-insights have a 404 dialog for category moderators

**URL:** https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682
**Category:** Bug
**Tags:** category-moderators, review-queue
**Created:** [January 5, 2026, 6:58am UTC](https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682 "2026-01-05T06:58:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/553546_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)
#### Post date: [January 5, 2026, 6:58am UTC](https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682/1 "2026-01-05T06:58:07Z")

</div>

When adding a user as the category moderator( **not moderator or admin** ), the user wasn’t grant the `staff` permission.

And when they moderate reviews(/review), the insights page will bump `An error occurred: Page Not Found。`

The issue is caused by the `loadIpData()` function, when it tries to get `/admin/users/xxxx.json`, the permission is denied by the backend.

This commit add a logic `!this.currentUser.staff`, to exclude users without staff permissions from requesting this api in frontend, so that there won’t be a dialog here.

[https://github.com/discourse/discourse/pull/36953](https://github.com/discourse/discourse/pull/36953)

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [January 6, 2026, 7:16am UTC](https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682/3 "2026-01-06T07:16:37Z")

</div>

Thank you for this fix 🎊

I tested it manually, but I will also add some automated tests.

* * *

EDITED:

Tests merged [DEV: missing specs for ip insights bugfix by KrisKotlarek · Pull Request #36972 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/36972)

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [January 9, 2026, 9:00pm UTC](https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682/5 "2026-01-09T21:00:50Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
