# レポートページでCategory Moderatorsに対するInsightsがエラーを発生させる

**URL:** https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975
**Category:** Bug
**Tags:** category-moderators, review-queue, reporting
**Created:** [2026 年 1 月 8 日午後 2:42 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975 "2026-01-08T14:42:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Steradiant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steradiant/32/360541_2.png) [@Steradiant](https://meta.discourse.org/u/Steradiant)
#### Post date: [2026 年 1 月 8 日午後 2:42 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975/1 "2026-01-08T14:42:19Z")

</div>

カテゴリモデレーターがレポートページにアクセスし、「インサイト」ページを選択するたびに、バックグラウンドで`/admin/users/12.json`を呼び出すエラー404に関連付けられたエラーメッセージが表示されます。それにもかかわらず、IP情報は非表示のままですが、ユーザー情報とモデレーション履歴は表示されます。ここでは、カテゴリモデレーターの権限管理が一貫していないようです。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2026 年 1 月 8 日午後 2:53 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975/2 "2026-01-08T14:53:36Z")

</div>

[FIX: review-insights have a 404 dialog for category moderators](https://meta.discourse.org/t/fix-review-insights-have-a-404-dialog-for-category-moderators/392682) で既にレポートと修正があります。  
最後にいつ更新しましたか？

---

<div class="post-metadata">

### Author: ![Steradiant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steradiant/32/360541_2.png) [@Steradiant](https://meta.discourse.org/u/Steradiant)
#### Post date: [2026 年 1 月 8 日午後 3:03 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975/3 "2026-01-08T15:03:11Z")

</div>

2025.12.0 ( [d91a9781df](https://github.com/discourse/discourse/commits/d91a9781df2ebff4075095f41de7c3141900745f) ) を再実行しているため、これはおそらくすでに修正されているはずです 😃

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年 2 月 19 日午前 11:44 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975/4 "2026-02-19T11:44:08Z")

</div>

これは @small-lovely-cat によって修正されたはずです。

> <https://github.com/discourse/discourse/pull/36953>
>
> When adding a user as the category moderator, the user wasn't grant the \`staff\` …permission.
> 
> And when they moderate reviews, the insight 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, to exclude users without staff permissions from requesting this api in frontend, so that there won't be a dialog here.
> 
> See the attachment.
> 
> \<img width="1116" height="200" alt="image" src="https://github.com/user-attachments/assets/78d1ae55-3d76-43d5-acbd-55e35597ce17" /\>

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年 2 月 19 日午前 11:44 UTC](https://meta.discourse.org/t/insights-raise-error-for-category-moderators-on-report-page/392975/5 "2026-02-19T11:44:18Z")

</div>


