mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 23:04:22 +08:00
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.
18 lines
411 B
YAML
Vendored
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
|