Skip to content

Commit

Permalink
fix(config): set default anon-access to read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Nov 17, 2022
1 parent 97749ea commit fdbbe08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ func NewConfig(cfg *config.Config) (*Config, error) {
c.Host = cfg.Host
c.Port = port
c.Source = rs
// Grant read-write access when no keys are provided.
if len(pks) == 0 {
anonAccess = "read-write"
} else {
anonAccess = "no-access"
anonAccess = "read-only"
}
if host == "" {
displayHost = "localhost"
Expand Down

0 comments on commit fdbbe08

Please sign in to comment.