[Feature] add new config to enforce public link password (#7547)
* add new config to enforce public link password * add api test
This commit is contained in:
@@ -51,5 +51,10 @@ func Validate(cfg *config.Config) error {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
|
||||
// Set password enforcement on all public links when config is set
|
||||
if cfg.OCS.PublicShareMustHavePassword {
|
||||
cfg.OCS.WriteablePublicShareMustHavePassword = true
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user