WebDAV: Fully disable endpoint in public mode as it is not needed #2464

This commit is contained in:
Michael Mayer 2022-06-25 03:44:09 +02:00
parent 5a89a79f86
commit 95936d0e84

View file

@ -7,7 +7,7 @@ func Sponsor() bool {
// DisableWebDAV checks if the built-in WebDAV server should be disabled.
func (c *Config) DisableWebDAV() bool {
if c.ReadOnly() || c.Demo() {
if c.Public() || c.ReadOnly() || c.Demo() {
return true
}