mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
17 lines
355 B
Go
17 lines
355 B
Go
|
package setting
|
||
|
|
||
|
import (
|
||
|
"gopkg.in/ini.v1"
|
||
|
)
|
||
|
|
||
|
type StorageSettings struct {
|
||
|
AllowUnsanitizedSvgUpload bool
|
||
|
}
|
||
|
|
||
|
func readStorageSettings(iniFile *ini.File) StorageSettings {
|
||
|
s := StorageSettings{}
|
||
|
storageSection := iniFile.Section("storage")
|
||
|
s.AllowUnsanitizedSvgUpload = storageSection.Key("allow_unsanitized_svg_upload").MustBool(false)
|
||
|
return s
|
||
|
}
|