限制主题仅限特定用户访问

Is there a way, perhaps witha plugin, to restrict posters to a public topic to a defined list? Ideally this should be a topic specific list of users.

1 个赞

Not sure exactly what you are asking for, but category security settings is the place to look to set up who is allowed to create topics, reply to topics or even see topics within each category. So I guess you’d want to put the topic you want to restrict access to within a category set up with the permissions you desire. E.g. everyone can see and reply, but only staff can create.

43%20AM

2 个赞

That is at a category level. What about at a topic level?

1 个赞

Convert the topic to a PM if topic-level restrictions are needed. Topics do not support restricted access except that provided at the category level.

6 个赞

Or just create a category for the one topic if you need it to be public but restrict who is allowed to post to it. You could then later close the topic and move it to a different category and delete the special category with restricted access.

4 个赞

为什么不限制用户/组访问特定主题?我们有一个用例,希望创建许多线程,让一组用户可以访问特定的线程集合。例如,Group1 可以访问线程 1、4、7、10;Group2 可以访问线程 2、5、8,依此类推。这里可能会有许多这样的线程和许多这样的组。将所有这些创建为类别似乎没有太大意义,尽管这看起来是我们目前唯一的选择。

有人能解释一下,为什么设计上限制不将权限概念扩展到主题吗?

2 个赞

Discourse 中已经存在具有单独权限的主题,它们被称为私信(Personal Messages)。

分类中的主题已经继承了分类级别的权限。如果允许以不同方式与一个主题交互,而另一个主题则不行,将会极其令人困惑且不直观。

权限模型在设计上简单且直观,您的用例已经通过私信(PMs)得到支持。

1 个赞

“私信”难道不是指仅对一个人可见吗?这里的意图是创建一个可供一组用户查看的线程。私信支持这种功能吗?

2 个赞

是的,可以在用户和群组之间的任意组合发送私信。

2 个赞

但它们不能公开。如果能实现类似私信的功能,允许发帖者或群组添加成员参与贡献,同时保持内容对所有人可见,那将非常有价值。

2 个赞

再想想,这确实会很有用。实现方式可能有两种:1)在某个分类中通过设置将特定的私信公开;或者 2)为特定用户或群组赋予在已关闭话题中发帖的权限。

其中第 2 种方案似乎更直接。理想情况下,用户应该能够申请发帖权限。

能否将此功能加入开发路线图?

不,这需要从头几乎完全重写 Discourse。我们从未做过,也从未提供过按主题设置权限的功能,除了私信之外。

当然,你可以将主题转换为私信,反之亦然。

3 个赞

允许我们在特定类别中将私信设置为公开可见,这样可行吗?这样会更容易实现吗?