Change default email_in minimum trust to 2
Also, rename MinTrustToCreateTopicSetting to TrustLevelSetting, and apply it to more settings
This commit is contained in:
parent
4750f4b5b8
commit
07d8d5ed75
|
@ -1,6 +1,6 @@
|
||||||
require_dependency 'enum_site_setting'
|
require_dependency 'enum_site_setting'
|
||||||
|
|
||||||
class MinTrustToCreateTopicSetting < EnumSiteSetting
|
class TrustLevelSetting < EnumSiteSetting
|
||||||
|
|
||||||
def self.valid_value?(val)
|
def self.valid_value?(val)
|
||||||
valid_values.any? { |v| v.to_s == val.to_s }
|
valid_values.any? { |v| v.to_s == val.to_s }
|
|
@ -381,8 +381,8 @@ email:
|
||||||
default: ''
|
default: ''
|
||||||
type: email
|
type: email
|
||||||
email_in_min_trust:
|
email_in_min_trust:
|
||||||
default: 3
|
default: 2
|
||||||
enum: 'MinTrustToCreateTopicSetting'
|
enum: 'TrustLevelSetting'
|
||||||
email_in_category: -1
|
email_in_category: -1
|
||||||
email_prefix: ''
|
email_prefix: ''
|
||||||
email_site_title: ''
|
email_site_title: ''
|
||||||
|
@ -442,14 +442,18 @@ files:
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
trust:
|
trust:
|
||||||
default_trust_level: 0
|
default_trust_level:
|
||||||
default_invitee_trust_level: 1
|
default: 0
|
||||||
|
enum: 'TrustLevelSetting'
|
||||||
|
default_invitee_trust_level:
|
||||||
|
default: 1
|
||||||
|
enum: 'TrustLevelSetting'
|
||||||
min_trust_to_create_topic:
|
min_trust_to_create_topic:
|
||||||
default: 0
|
default: 0
|
||||||
enum: 'MinTrustToCreateTopicSetting'
|
enum: 'TrustLevelSetting'
|
||||||
min_trust_to_edit_wiki_post:
|
min_trust_to_edit_wiki_post:
|
||||||
default: 1
|
default: 1
|
||||||
enum: 'MinTrustToCreateTopicSetting'
|
enum: 'TrustLevelSetting'
|
||||||
basic_requires_topics_entered: 5
|
basic_requires_topics_entered: 5
|
||||||
basic_requires_read_posts: 30
|
basic_requires_read_posts: 30
|
||||||
basic_requires_time_spent_mins: 10
|
basic_requires_time_spent_mins: 10
|
||||||
|
|
Loading…
Reference in New Issue