# 在侧边栏中也为允许管理类别的版主显示“新类别”选项

**URL:** <https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441>\
**Category:** Feature\
**Tags:** sidebar\
**Created:** [2026 年2 月 7 日 16:44 UTC](https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441 "2026-02-07T16:44:35Z")\
**Posts on this page:** 4\
**Page:** 1

<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 年2 月 7 日 16:44 UTC](https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441/1 "2026-02-07T16:44:35Z")

</div>

[FEATURE: add "New category" action to sidebar for admins by ZogStriP · Pull Request #37082 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/37082) 添加了一个新的菜单，以便更轻松地创建分类。

我建议如果启用了 `Moderators manage categories` 站点设置，也向版主显示此菜单。

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/8/9/c898a1b2b802e8e812e4bbe7eddda441e62523cf.png)

---

<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 月 7 日 21:58 UTC](https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441/2 "2026-02-07T21:58:12Z")

</div>

干得漂亮 👍

> <https://github.com/discourse/discourse/pull/37624>
>
> The sidebar "New category" action and the \`/new-category\` route were checking \`c…urrentUser.admin\` directly, which excluded moderators even when the \`moderators\_manage\_categories\` site setting was enabled.
> 
> This is inconsistent with the backend Guardian which already allows moderators to create categories when that setting is on.
> 
> Added \`can\_create\_category\` to \`CurrentUserSerializer\` (delegating to \`Guardian#can\_create\_category?\`) and updated the sidebar component and the new-category route to use it instead of manual role checks.
> 
> Ref - https://meta.discourse.org/t/395441

---

<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 年2 月 7 日 22:44 UTC](https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441/4 "2026-02-07T22:44:54Z")

</div>

> [@zogstrip](#):
>
> 干得好 👍

解释：人工智能将“nice one”翻译成了德语的“gut gemacht”（干得好），而不是“gute Idee”（好主意）。我想赞同你对自己做得好的自我评价 🙂

---

<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 月 11 日 17:08 UTC](https://meta.discourse.org/t/show-new-category-option-in-sidebar-also-for-moderators-allowed-to-manage-categories/395441/5 "2026-02-11T17:08:30Z")

</div>


