نسخ المنشورات من Discourse Policy قبل انتهاء صلاحيتها…
Tris20:
هل من الممكن إظهار رابط أو محتوى آخر للأعضاء بمجرد قبولهم للسياسة؟
على سبيل المثال، أردنا تسجيل نقاش ولكننا احتجنا إلى موافقة المستخدمين على الشروط أولاً. في هذه الحالة، سيعرض الرابط الخاص بالنقاش فقط للمستخدمين الذين قبلوا السياسة.
لقد دفعنا لتطوير هذا الإضافة الذي يُسمح لك باستخدامه. فهو يحافظ على عضوية المجموعة بناءً على ما إذا كانوا قد قبلوا السياسة. ثم يمكنك تقييد تصنيفك الخاص بهذه المجموعة فقط.
في حالتك، قد تكون المجموعة المصدر trust_level_0 أو الجميع.
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 n…
Contribute to communiteq/discourse-policy-groupadd development by creating an account on GitHub.
4 إعجابات