FEATURE: Display trust level descriptions in site settings (#6421)
This commit is contained in:
parent
5407036ef9
commit
84f5448a92
|
@ -8,7 +8,8 @@ class TrustLevelSetting < EnumSiteSetting
|
|||
end
|
||||
|
||||
def self.values
|
||||
@values ||= valid_values.map { |x| { name: x.to_s, value: x } }
|
||||
levels = TrustLevel.all
|
||||
@values ||= valid_values.map { |x| { name: "#{x}: #{levels[x.to_i].name}", value: x } }
|
||||
end
|
||||
|
||||
def self.valid_values
|
||||
|
|
Loading…
Reference in New Issue