# レビューキューで、既に削除されたユーザーを削除しようとすると、混乱を招くエラーが表示されます

**URL:** https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557
**Category:** Bug
**Created:** [2021 年 4 月 21 日午前 3:28 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557 "2021-04-21T03:28:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [2021 年 4 月 21 日午前 3:28 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557/1 "2021-04-21T03:28:17Z")

</div>

他の誰かがスパマーを削除している間にレビューキューを見ていた場合、そのことは分かりません。その後削除を試みると、混乱を招くエラーメッセージが表示され、ユーザーは依然としてキューに表示されているように見えます。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/6/062f1c6ff3ec2efa5fdba4df8937e87aa1c73796.png)

おおよその手順は以下の通りです：

1. スパマーがスパム行為を行う
2. スパマーがフラグ付けされ、キューに登録される
3. キューページを開く
4. 他の誰かがスパマーを削除する
5. スパマーを削除するボタンを押す
6. エラーメッセージが表示される
7. しかし、スパマーはページに表示され続けている
8. Meta でバグ報告を行う

このバグ（[https://meta.discourse.org/t/error-on-delete-user-in-pending-approvals-list/107780）は類似しているようです。](https://meta.discourse.org/t/error-on-delete-user-in-pending-approvals-list/107780%EF%BC%89%E3%81%AF%E9%A1%9E%E4%BC%BC%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2021 年 5 月 3 日午後 6:11 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557/2 "2021-05-03T18:11:36Z")

</div>

自分もこれに遭遇しました。もっと良いエラーメッセージがあると嬉しいです。

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2021 年 5 月 4 日午前 1:05 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557/3 "2021-05-04T01:05:32Z")

</div>

@vinothkannans ここでのエラーメッセージを改善してもらえますか？

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2021 年 5 月 7 日午前 4:29 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557/5 "2021-05-07T04:29:18Z")

</div>

PR でエラーメッセージが改善されました

> <https://github.com/discourse/discourse/pull/12977>
>
> Currently, when the target is not available we're returning the error message "\`…You are not permitted to view the requested resource\`" which is not clear.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2021 年 5 月 13 日午後 3:00 UTC](https://meta.discourse.org/t/the-review-queue-shows-a-confusing-error-when-trying-to-delete-a-user-that-was-already-deleted/187557/6 "2021-05-13T15:00:37Z")

</div>

このトピックは6日後に自動的に閉鎖されました。新しい返信は受け付けられていません。
