mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-16 18:05:35 +08:00
Certain upcoming changes do not make sense to enable for "Everyone", like changes that will only affect the admin UI. We currently have a disallow_enabled_for_groups option that changes the "Enabled for" dropdown to only show Everyone and No one, but this is a bit of a blunt instrument. This change adds an `allow_enabled_for` option for upcoming changes which is a YAML array: * When omitted, the "Enabled for" dropdown will show Everyone, Staff, Specific group(s) and No one. * When set to everyone, the dropdown will only show Everyone and No one. * When set to staff, the dropdown will only show Staff and No one. * It can also be set to staff and specific_groups This commit also changes the reporting_improvements upcoming change to be staff, specific_groups and adds a DB migration to account for this. |
||
|---|---|---|
| .. | ||
| coding_style_spec.rb | ||
| common_mark_spec.rb | ||
| having_multiple_tagged_loggers_spec.rb | ||
| i18n_spec.rb | ||
| js_constants_spec.rb | ||
| middleware_order_spec.rb | ||
| oj_spec.rb | ||
| onceoff_integrity_spec.rb | ||
| site_setting_spec.rb | ||
| upcoming_change_metadata_spec.rb | ||