From 95936d0e84fb2cb133dad395fe5da5542c0a6572 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 25 Jun 2022 03:44:09 +0200 Subject: [PATCH] WebDAV: Fully disable endpoint in public mode as it is not needed #2464 --- internal/config/config_features.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config_features.go b/internal/config/config_features.go index 52b1c2570..8d67c33b7 100644 --- a/internal/config/config_features.go +++ b/internal/config/config_features.go @@ -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 }