0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 13:59:03 +08:00
discourse/plugins/discourse-policy/config/settings.yml
Ted Johansson d85a657257
DEV: Convert policy_restrict_to_staff_posts to group based access (#36157)
This PR adds more flexibility to the policy plugin by changing the setting governing who can add policies to their posts from having options "restricted (staff) / unrestricted (everyone)" to being group based.
2025-12-02 09:50:18 +08:00

18 lines
411 B
YAML
Vendored

plugins:
policy_enabled:
default: false
client: true
policy_restrict_to_staff_posts:
client: true
default: true
hidden: true
create_policy_allowed_groups:
client: true
type: group_list
default: "1|2" # Admins + moderators.
mandatory_values: "1|2"
allow_any: false
refresh: true
validator: "AtLeastOneGroupValidator"
policy_easy_revoke:
default: false