Plugin to maintain group membership based on accepting a Policy

What would you like done?

Need a plugin to do an odd mash-up. If a user has accepted a certain Discourse Policy and is a member of group A, then make them a member of group B, else remove them from group B.

Would be nice to make them a member of group B as soon as they accept the policy, but if we need to wait a bit for sidekiq, that may be acceptable.

Reference the policy_users table.

The post_policy_id and group names can be hard-coded. I can edit later if needed. And just in case I ever need to use this for another mash-up, make it a hard-coded list:

{
  [post_policy_id_1, group A, group B],
  [post_policy_id_2, group C, group D],
  ...
}

When do you need it done?

In the next week would be great.

What is your budget, in $ USD that you can offer for this task?

Open to suggestions but looking for quick, cheap, and hard-coded since it’s a one-off.

Please PM me if you can help.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.