Most of our forum is pretty general. However, one part is a “forum game”. If you get caught cheating, you get banned from playing. However, we can’t actually ban them from that specific category … or can we? It’s getting hard to moderate.
EDIT: A workaround, I made a group to store the people suspended from a certain category. However, it would be great if I could natively ban people from certain categories (with the see/create/reply permission options).
1 个赞
I think the only way to do this would be to create a group that includes everyone who is allowed to be in the category.
It would be nice to have a negative category permission available on category security settings, e.g. “Cannot create/reply/see”. But that does not exist now.
2 个赞
Falco
(Falco)
2017 年5 月 18 日 04:40
3
This is 100% covered by groups, just remove the cheaters from the game group and they can’t access the category anymore.
3 个赞
So default put everyone in a “game” group, then REMOVE them as they are suspended? Interesting
5 个赞
Iceman
(Iceman)
2021 年11 月 18 日 13:50
5
抱歉打扰,但这是搜索结果中的首位,而且其他主题(如下链接)要么已关闭,要么在问题方面不够清晰。
遵循此处及类似主题中阐述的逻辑,似乎最好的方法是将“所有人”添加到某个组,然后从该组中移除您想“禁止”访问某个类别的用户,因为我们没有从组中移除“查看”权限的选项,只能添加 。
这似乎很合乎逻辑,但假设您的实例有 5k 用户,您是否必须手动添加他们?并且在有新用户加入时不断更新?我不确定在将用户添加到组时是否有像“@everyone ”这样的“秘籍”,似乎没有。
是否有更好的方法而我错过了?
谢谢。
其他相关主题:
Is this possible?
I have searched for the answer to this and I have decided that this is ‘likely’ not possible right now but I want to be sure.
Could it be done with a simple plugin (vs a complex plugin that only an expert could write)?
I do not want to make a Category which only certain Groups can see and participate in.
Also, a PM is not what I am looking for.
Continuing the discussion from Suspend as way to expire membership :
After suggesting to another user that instead of suspending a user they could put them in a group and change category permissions. I recently came across my own use case for this, where I needed to add some users to my instance and only give them access to one category. It does not seem like there is an easy way to do so, without modifying the permissions for every other category, and putting all other users in their own grou…
Does anyone have any ideas, tips or tricks how to exclude members from a specific group from accessing a specific category?
What would be the easiest way to accomplish that?
This guide explains how to manage category visibility and user permissions using groups in Discourse.
Required user level: Administrator
Groups and category permissions are crucial for managing access and content creation within your Discourse community. This guide will help you understand how to use these features effectively.
Summary
Category permissions control visibility and user actions
Permissions are managed through group access lists
Different perm…
2 个赞
pfaffman
(Jay Pfaffman)
2021 年11 月 19 日 00:18
6
好的。没有一个好的方法可以禁止某人进入某个类别。这种情况不常发生。通常,如果你想禁止某人,就是从所有地方禁止。你可以在 rails 控制台将每个人添加到一个组,然后移除这个人,但这会很痛苦。
你可以有一个插件,将每个人添加到一个组,然后有一个网站设置,指定你不想让谁进入该组的用户。
3 个赞
我也很希望看到这个功能。我们也有类似的情况。
我们有一些类别是限制给特定群组的。
但我们也需要能够将某些人排除在这些类别之外。
负向类别成员资格会起作用。但我认为一个更强大、更灵活的解决方案是拥有用户定义的自动群组(就像今天的 staff 一样)。这些群组可以支持基本的集合运算来确定成员资格。
例如,有了这个功能,staff 就不需要作为一个特殊情况,而可以简单地定义为 admin + moderators。创建了这个自动群组的事实强烈暗示了这个功能很有用,应该扩展为一个通用功能,而不是一个内置功能。
有了这个功能,您可以通过拥有一个群组 HasAccess = AccessGroup - BannedGroup 来实现负向排除。
这些自动群组在其他用例中也会非常有用。例如:
提升等级
目前我们有一些锁定的论坛,它们基本上涵盖了更小范围的人群。例如:
Admin = Admin
Moderators = Admin + Moderators
BetaTeam = Admin + Moderators + Beta
Trusted = Admin + Moderators + Beta + Trusted
需要在每个类别中应用正确的群组列表非常繁琐且容易出错。我们遇到过很多情况,某个类别缺少了本应有权访问的某个群组。能够定义这样的群组将使管理变得更加容易:
ModeratorsOrHigher = Admin + Moderators (这已作为 staff 自动群组内置)
BetaOrHigher = ModeratorsOrHigher + Beta
TrustedOrHigher = BetaOrHigher + Trusted
常用群组
我们的多个类别具有完全相同的访问规则集的情况也很常见。这基本上是上述情况的简化版,但能够只创建一个自动群组并在多处使用它,而不是需要在许多类别中重复整个群组列表并保持同步,会很方便。