only check config perms in production (#1013)

This commit is contained in:
Marwan Sulaiman
2018-12-22 11:33:57 -05:00
committed by GitHub
parent 02cb18ce5e
commit 2d2bd8eff9
+4 -2
View File
@@ -90,8 +90,10 @@ func ParseConfigFile(configFile string) (*Config, error) {
}
// Check file perms from config
if err := checkFilePerms(configFile, config.FilterFile); err != nil {
return nil, err
if config.GoEnv == "production" {
if err := checkFilePerms(configFile, config.FilterFile); err != nil {
return nil, err
}
}
// override values with environment variables if specified