Understanding groups and category permissions

:bookmark: 本指南介绍如何使用 Discourse 中的群组来管理类别可见性和用户权限。

:person_raising_hand: 所需用户级别:管理员

群组和类别权限对于管理 Discourse 社区内的访问和内容创建至关重要。本指南将帮助您了解如何有效使用这些功能。

摘要

  • 类别权限控制可见性和用户操作
  • 权限通过群组访问列表进行管理
  • 不同的权限级别:查看、回复和创建
  • 对管理员、版主和匿名访问的特殊注意事项

管理类别权限

访问类别安全设置

  1. 导航到要管理的类别
  2. 点击类别的“关于”页面
  3. 选择“编辑类别”
  4. 转到“安全”选项卡

您将看到一个类似于此的屏幕:

理解权限级别

您可以为群组分配三个级别的权限:

  1. 查看:用户可以查看类别及其内容
  2. 回复:用户可以回复现有主题
  3. 创建:用户可以在类别中创建新主题

将群组添加到访问列表

  1. 点击“添加群组”按钮
  2. 从下拉菜单中选择一个群组
  3. 为该群组选择适当的权限级别

:information_source: 新论坛具有默认群组,如“所有人”、“管理员”、“员工”、“版主”和信任级别群组。您创建的自定义群组也将出现在此列表中。

从访问列表中移除群组

要移除群组的访问权限,只需点击群组名称旁边的垃圾桶 :wastebasket: 图标。

类别可见性和访问控制

默认权限

默认情况下,新类别允许“所有人”群组查看/回复/创建。这意味着所有用户,包括匿名访问者,都可以完全访问该类别。

限制类别可见性

如果某个群组对某个类别没有“查看”权限:

  • 该类别不会显示在该群组成员的用户界面中
  • 拥有访问权限的群组成员将在类别徽章旁边看到一个锁形图标

要将类别访问限制为特定群组,您需要从类别安全设置中移除 everyone 群组,并包含允许查看该类别的适当群组。

此视频演示了如何使用群组权限创建私有类别:

:warning: 请注意,视频中的用户界面已过时,但核心概念仍然适用。

https://www.youtube.com/watch?v=u2--KFaBwu4

视频文字记录

在此视频中,我们将介绍如何创建一个用户群组,然后授予该群组对私有类别的权限。

在此 Discourse 安装中,我有一个名为 staff 的类别,我想授予特定用户群组对该特定类别的访问权限。

首先,我将进入管理页面,然后转到用户和群组,在此创建新群组。

我们有一个实习生群组,他们很快就会加入团队,所以我们想让他们对这个 staff 类别拥有特定级别的访问权限。

我们希望他们能够查看和回复主题,但不能创建新主题,所以让我们创建这个群组,我们将保留所有这些默认设置,然后点击创建。

点击创建后,我们可以返回到我们的类别,找到我们关心的私有类别:staff。

现在我们将编辑这个类别。转到安全设置,这里是我们的权限页面。
目前,属于 staff 群组的用户可以创建、回复和查看 staff 类别中的主题。

现在我将选择我刚刚创建的 interns 群组,然后打开这个下拉菜单,允许 interns 回复和查看主题,但不能创建新主题。我们也可以选择“查看”,但现在我只选择回复和查看。

然后我们将点击加号按钮并保存类别,然后等待页面更新。

我添加到这个 interns 群组的任何新用户现在都可以查看 staff 类别中的所有主题,并且可以回复其中的任何一个——他们只是无法在此类别中创建新主题。

因此,这就是如何在 discourse 中创建群组,然后授予该特定用户群组对私有类别的特定权限。

限制操作而不隐藏类别

如果一个群组可以“查看”但不能“创建”或“回复”:

  • 该类别及其内容将可见
  • “新主题”按钮将显示为灰色且禁用
  • 该类别不会出现在撰写器类别下拉菜单中

:information_source: 只能“查看”类别的用户仍然可以接收通知,并且类别内容将包含在他们的摘要电子邮件中。

特殊情况和注意事项

管理员和版主访问

  • 管理员始终对所有类别拥有完全的创建/回复/查看权限
  • 版主没有默认访问权限,必须明确包含在权限规则中
  • 版主属于“staff”和“moderators”群组

匿名 vs. 登录用户

  • “所有人”群组包括所有用户,包括匿名访问者
  • “trust_level_0”群组包括所有登录用户
  • 要禁止匿名访问,请使用“trust_level_0”而不是“everyone”

权限配置示例

限制对自定义群组的访问

公开可见性,限制内容创建

公开回复,限制主题创建

仅限登录用户访问

附加资源

44 个赞
Create a private category with limited access for a certain group
Setting up a private category
Restricting Access to categories
What are the 'Private spaces'? What difference with 'Categories'?
Private Topics - are they supported?
Creating private groups
Group permissions for specific subcategory
Difficulty of Tiered-access forum
Can a group be used to contain users to viewing specific categories?
Adding users to the "staff" group
Custom Guest Mode
Is it possible to create a private categories
Using Discourse For Course Community
Patreon members only can create a New Topic?
Permissions for specific users
Setting Security Parameters: Log-In, Read-Only, Protected Groups
Red spot to indicate new users to review
Ban members from certain categories?
Private room/category for specific User group?
Mirrored topic: same topic in two categories
Configure Patreon integration with Discourse
Difference between “member” and “staff user”
Can I add a group of users to a PM without inviting them?
A plugin to "check" a portion of a post before it can be posted
Private Group Facebook Like
Private Group Facebook Like
Category Previews
Category Previews
Category Previews
Several questions about management right
How we put people in a category?
Questions à propos des groupes
Setting up Trust Levels along with Groups
Understanding Discourse
Allow only posting to subcategories
Ability to disable trust level auto-promotion?
The ability to post answers anonymously
Disable New Topic
What can user groups be used for?
What can user groups be used for?
Unable to set a Featured Topic
Help with auto-close topic?
Discourse for self hosting
Providing specific permissions to specific groups
Is it possible to add custom security groups (creating mini sub-communities)
Pin topics only for specific groups?
Limit discussion to certain people
Silence user via API
Discourse for Academic Use Features (Done and to be Done)
Prevent users creating new topics in a category but allowing them to comment?
Voting plugin: hiding closed topics
Latest topics on homepage with only members to read in detail?
Is it possible to create a custom group?
Automatically granting permissions to new members?
Placing Specific Topics in Read Only
4 different user types
How do I get some members to have a colored nick and create topics? (That others can't see this topic)
Forum structure advice
New to Discourse, have some questions :)
Allow students to create a tag when opening a topic
Setting up Discourse without the ability to create new topics
Can't delete this category because it has chat channels
Permissions and clients/users
Do not know how to setup locked subcategory
Locking topics to be accessed by members-only
Users self-select Category on Registration... is it possible?
Create a category in Discourse
Is it possible to restrict certain “docs” to appear based on the user’s groups?
How to make only people from a specific group create a post?
Disable topic creation in the parent/root category
Configure Patreon integration with Discourse
Discourse Moderation Guide
Groups ACL
Show posts only to logged in users
Post with private tag group is visible to not logged in user with direct link
Available settings within the category edit page
Default staff category permissions (on install)? what are they, exactly?
Understanding Discourse Trust Levels
Allow guest to Post in Topic
Disable reply option on every new topic users create
Limit topic creation to subcategories
Restrict "Ask a category expert to respond" to specific groups?
Use Case Question - Room/Equipment Booking
How to make the notification settings enabled to all the users?
Are Moderated User Invites a thing?
My Wiki of useful Meta (and other) links
My community users can't post anything
User created groups
Page visible to all - specific category for users only
Migrate a vBulletin 4 forum to Discourse
Error Can't search when No login
Addding a paid group who can reply to topics but not create them
First-login home page
Limiting visibility and access to forums by profile
Configuring group notifications for a private category
Hierarchical group membership (groups inside groups)
Control Category Visibility and Access by User Levels
I Need a category link to take me to a tags page
A few questions related to moderation
I can't find the settings to allow members to make new topics
I can't find the settings to allow members to make new topics
How to delete default categories with chats?
Set up a category ONLY for specific Users
Limit users rights
No drafts in Discourse? Abomination! So I have had to publish 65 open drafts. And that sucks. Is there a way to hide these published posts?
Creating groups in Discourse
Create a topic where only chosen people can post and see posts
How to Admin or the person who create the topic can only post
Looking for vBulletin alternatives (self hosted)
Trying to bring paying members from wp to discourse
Configuring anonymous posting for specific categories
WP (SSO) + LMS + Discourse Advice/Best Practices?
Can we prevent an admin from seeing a private category?
Help! Making two different channels in my discourse
Understanding Discourse for new users
Is this a use case for user custom fields?
Group as Group member?
Limiting Users to Certain Threads
Confidentiality of Posts, Public/private/onlyForAdmins

2 篇帖子已拆分到新主题:创建用于频道的幽灵类别