カテゴリをまたぐ投稿の作成方法

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 を使用してトピックとその返信をクローンし、作成した投稿をクローンするためにボットユーザーを利用しました。

興味深いですね。コードを共有していただけますか?
つまり、唯一の問題は、ファイナンス側のユーザーがマーケティング側で誰が入力しているかを見ることができず、その逆もまた同様だということでしょうか?

コードは共有できません。
はい、そのために、この返信がユーザーによって投稿されたことを識別する接尾辞を追加しました。