Change default email_in minimum trust to 2

Also, rename MinTrustToCreateTopicSetting to TrustLevelSetting, and apply it to more settings
This commit is contained in:
riking 2014-07-11 12:35:17 -07:00
parent 4750f4b5b8
commit 07d8d5ed75
2 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
require_dependency 'enum_site_setting'
class MinTrustToCreateTopicSetting < EnumSiteSetting
class TrustLevelSetting < EnumSiteSetting
def self.valid_value?(val)
valid_values.any? { |v| v.to_s == val.to_s }

View File

@ -381,8 +381,8 @@ email:
default: ''
type: email
email_in_min_trust:
default: 3
enum: 'MinTrustToCreateTopicSetting'
default: 2
enum: 'TrustLevelSetting'
email_in_category: -1
email_prefix: ''
email_site_title: ''
@ -442,14 +442,18 @@ files:
default: false
trust:
default_trust_level: 0
default_invitee_trust_level: 1
default_trust_level:
default: 0
enum: 'TrustLevelSetting'
default_invitee_trust_level:
default: 1
enum: 'TrustLevelSetting'
min_trust_to_create_topic:
default: 0
enum: 'MinTrustToCreateTopicSetting'
enum: 'TrustLevelSetting'
min_trust_to_edit_wiki_post:
default: 1
enum: 'MinTrustToCreateTopicSetting'
enum: 'TrustLevelSetting'
basic_requires_topics_entered: 5
basic_requires_read_posts: 30
basic_requires_time_spent_mins: 10