# 允许 TL4 或猫咪版主在主题列表中查看未列出的主题

**URL:** <https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069>\
**Category:** Feature\
**Tags:** completed, category-moderators, unlisting\
**Created:** [2022年十一月10日 02:04 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069 "2022-11-10T02:04:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2022年十一月10日 02:04 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069/1 "2022-11-10T02:04:09Z")

</div>

您好，我是一个 Discourse 论坛的管理员。由于论坛的特殊性，我们经常需要使用“未列出”功能。  
在测试分类版主和 tl4 用户时，我注意到他们看不到其分类中的未列出帖子（即使是他们自己将其设为未列出）。  
我查看了 [https://meta.discourse.org/t/trust-level-permissions-table-inc-moderator-roles/224824，注意到没有启用它们的开关。](https://meta.discourse.org/t/trust-level-permissions-table-inc-moderator-roles/224824%EF%BC%8C%E6%B3%A8%E6%84%8F%E5%88%B0%E6%B2%A1%E6%9C%89%E5%90%AF%E7%94%A8%E5%AE%83%E4%BB%AC%E7%9A%84%E5%BC%80%E5%85%B3%E3%80%82)  
这个需求合理吗？是否有现有的插件提供这样的开关？

---

<div class="post-metadata">

**Author:** ![not-ethan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/not-ethan/32/282617_2.png) [@not-ethan](https://meta.discourse.org/u/not-ethan)\
**Post date:** [2022年十一月18日 17:48 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069/2 "2022-11-18T17:48:31Z")

</div>

我认为这是合理的，因为 TL4 和版主可以回复已关闭的主题，并且可以随意回复慢速模式的主题。而且他们无论如何都可以取消列表和重新列出主题。

---

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [2023年一月17日 08:50 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069/3 "2023-01-17T08:50:29Z")

</div>

干得好，@Lhc_fl！ 🙂

TL4 用户可以列出和取消列出主题，因此他们也应该能够看到已取消列出的主题，这是有道理的。

这已在以下位置修复：

> <https://github.com/discourse/discourse/pull/19890>
>
> \### What is this change?
> 
> In response to \[this Meta topic\](https://meta.discou…rse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069).
> 
> TL4 users can already list and unlist topics, but can not see topics that have been unlisted. This change brings that back to par by giving TL4 users the ability to see unlisted topics as well.
> 
> (This could technically be considered a fix, but it's a bit unclear, and so I labelled it as feature to highlight the change in behaviour.)
> 
> \### What's the approach?
> 
> I've added a new \`TopicGuardian#can\_see\_unlisted\_topics?\` which grants permission to staff and TL4 users. This encodes the fact that staff users can see unlisted posts explicitly. This was previously implicit in the \`TopicQuery\` code. (See inline comment for more details.)
> 
> \### What else was considered?
> 
> It originally looked to me as though this could be yet another alias of \`#can\_perform\_action\_available\_to\_group\_moderators?\`, which is used as a shared check for a number of actions, such as archiving, pinning/unpinning, opening/closing, etc.
> 
> However, as I went down this route, I encountered more and more friction stemming from the fact that all the other actions are operations on a particular topic. The end result was that the \`#can\_perform\_action\_available\_to\_group\_moderators?\` lost its conceptual clarity, and so I decided on a separate method instead.
> 
> \### Manual verification
> 
> \- \[x\] Staff can still see unlisted topics.
> \- \[x\] Users can still see unlisted topics \_when viewing their own topics\_.
> \- \[x\] Users can not see unlisted topics under other filters.
> \- \[x\] TL4 users can now see unlisted topics.

---

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2023年一月17日 12:09 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069/4 "2023-01-17T12:09:05Z")

</div>

太棒了！谢谢你的修复！

---

<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:** [2024年九月29日 13:49 UTC](https://meta.discourse.org/t/allow-tl4-or-cat-mod-to-see-unlisted-topics-in-topic-list/245069/7 "2024-09-29T13:49:49Z")

</div>


