如何进行跨类别发帖

Hello All,

I would like to discuss a use case here, much appreciate your help

My current setup:
two categories:

  1. Finance
  2. Marketing

Two types of users :

  1. Finance
  2. Marketing

currently,
finance user can start or see topics from finance category and
marketing user can start or see topics from marketing category only.

new user case
But now I want to make some changes in permission to support. that if marketing user wishes to post a topic in the finance category, then they should be allowed, but they only can see topics from marketing category and topic started by him/her in finance category.

As, I feel this is something related to hacking of permission I am posting this in dev category.

Please help how can I achieve this?

Thanks,

That’s not going to be easily possible. Permissions are at the category level, not the topic level. They can either see the Finance category or not. They can’t see just their posts in the Finance category.

The only way to have topic-level permissions is to use PMs.

Thanks for your quick reply @pfaffman,

I have another though to achieve this. what if I will clone that topic from one category to another and when someone reply to that cloned topic that I will clone that post to original Topic.

I have gone through the rest apis. and I think I can achieve this using rest api. but of course I may not be able to attached username who has replied on those topic.

so, apart from RestAPIs is there any configuration available in discourse it self or any plug-in that can help me to do so.

您找到解决问题的办法了吗?

我为跨类别主题帖子编写了一个解决方案,并实现了我之前提到的方案。我通过 Webhook 克隆了主题及其回复,以克隆我创建的帖子,并使用了机器人用户。

有意思。你介意分享一下代码吗?
所以唯一的问题是,财务侧的用户看不到市场侧谁在输入,反之亦然?

我无法分享代码,
是的,但为此我们添加了一个后缀,以标识该回复是由用户发布的。