# 相关类别权限

**URL:** https://meta.discourse.org/t/related-category-permissions/337039
**Category:** Theme component
**Created:** [2024年十一月19日 16:37 UTC](https://meta.discourse.org/t/related-category-permissions/337039 "2024-11-19T16:37:35Z")
**Posts on this page:** 3
**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: [2024年十一月19日 16:37 UTC](https://meta.discourse.org/t/related-category-permissions/337039/1 "2024-11-19T16:37:35Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 添加了关于当前类别下方父类别和子类别的安全权限信息 |
| 🛠 | **代码库** | [GitHub - moin-Jana/related-category-permissions: Adds information about the security permissions of parent and subcategories below those of the current category](https://github.com/moin-Jana/related-category-permissions) |
| ❓ | **安装指南** | [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **首次使用 Discourse 主题？** | [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

安装此主题组件

我创建这个组件是因为我经常在创建子类别时难以分配正确的组。

> 发生错误：允许访问子类别的任何组也必须允许访问父类别。以下组可以访问其中一个子类别，但无法访问父类别：admins

我经常看到此消息，因为我忘记了哪些组有权访问相关类别。例如，当我尝试将 staff 类别的子类别限制为管理员时，我有时会忘记，虽然我知道所有管理员都是 staff，但 Discourse 会独立处理这些组 🙂

这就是为什么我需要一种方法来快速检查哪些组被允许访问父类别。而这正是该组件提供的功能。

### 屏幕截图

**子类别下方显示的父类别权限：**

 ![子类别下方显示的父类别权限](https://global.discourse-cdn.com/meta/original/4X/9/9/6/99644a6eb7ff51eca4e79ad91d6bf0d67ad78dfa.png)

**父类别下方显示的子类别权限：**

 ![父类别下方显示的子类别权限](https://global.discourse-cdn.com/meta/original/4X/c/b/5/cb584a3bf6989980bdeb7fcc2c00a547cc641b7c.png)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年十一月19日 16:39 UTC](https://meta.discourse.org/t/related-category-permissions/337039/2 "2024-11-19T16:39:45Z")

</div>

这是一个很棒的组件。非常有用！感谢分享。 🤩

---

<div class="post-metadata">

### Author: ![tgustilo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgustilo/32/459560_2.png) [@tgustilo](https://meta.discourse.org/u/tgustilo)
#### Post date: [2024年十一月20日 17:53 UTC](https://meta.discourse.org/t/related-category-permissions/337039/3 "2024-11-20T17:53:15Z")

</div>

太棒了！正如宣传的那样好用。我喜欢我可以从两个方向工作，从类别到子类别，以及从子类别到类别。谢谢！
