mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Convert approve_new_topics_unless_trust_level to groups (#24504)
* DEV: Convert approve_new_topics_unless_trust_level to groups This change converts the `approve_new_topics_unless_trust_level` site setting to `approve_new_topics_unless_allowed_groups`. See: https://meta.discourse.org/t/283408 - Hides the old setting - Adds the new site setting - Add a deprecation warning - Updates to use the new setting - Adds a migration to fill in the new setting if the old setting was changed - Adds an entry to the site_setting.keywords section - Updates tests to account for the new change After a couple of months we will remove the `approve_new_topics_unless_trust_level` setting entirely. Internal ref: /t/115696 * add missing translation * Add keyword entry * Add migration
This commit is contained in:
@@ -6,6 +6,7 @@ class ReviewableScoreSerializer < ApplicationSerializer
|
||||
trust_level: "approve_unless_trust_level",
|
||||
group: "approve_unless_allowed_groups",
|
||||
new_topics_unless_trust_level: "approve_new_topics_unless_trust_level",
|
||||
new_topics_unless_allowed_groups: "approve_new_topics_unless_allowed_groups",
|
||||
fast_typer: "min_first_post_typing_time",
|
||||
auto_silence_regex: "auto_silence_first_post_regex",
|
||||
staged: "approve_unless_staged",
|
||||
|
||||
Reference in New Issue
Block a user