mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
only check config perms in production (#1013)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user