diff --git a/changelog/unreleased/public-link-password.md b/changelog/unreleased/public-link-password.md index fddffa3df..39ce98631 100644 --- a/changelog/unreleased/public-link-password.md +++ b/changelog/unreleased/public-link-password.md @@ -6,5 +6,6 @@ The new options are: `OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD`, `SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD` and `FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD`. Check the docs on how to properly set them. +https://github.com/owncloud/ocis/pull/5848 https://github.com/owncloud/ocis/pull/5785 https://github.com/owncloud/ocis/pull/5720 diff --git a/go.mod b/go.mod index d1cfda855..694b6cab7 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/blevesearch/bleve/v2 v2.3.6 github.com/coreos/go-oidc/v3 v3.4.0 github.com/cs3org/go-cs3apis v0.0.0-20221012090518-ef2996678965 - github.com/cs3org/reva/v2 v2.12.1-0.20230315145327-53ed6a882960 + github.com/cs3org/reva/v2 v2.12.1-0.20230315220346-44e55cb0de0a github.com/disintegration/imaging v1.6.2 github.com/gabriel-vasile/mimetype v1.4.1 github.com/ggwhite/go-masker v1.0.9 diff --git a/go.sum b/go.sum index a02f4ef30..9539a19a1 100644 --- a/go.sum +++ b/go.sum @@ -620,6 +620,8 @@ github.com/crewjam/saml v0.4.10 h1:Rjs6x4s/aQFXiaPjw3uhB4VdxRqoxHXOJrrj4BsMn9o= github.com/crewjam/saml v0.4.10/go.mod h1:9Zh6dWPtB3MSzTRt8fIFH60Z351QQ+s7hCU3J/tTlA4= github.com/cs3org/reva/v2 v2.12.1-0.20230315145327-53ed6a882960 h1:TyzlHfMasuJ2rPwh0vU6hiSRvzvSCAWQRyYc/YCXkig= github.com/cs3org/reva/v2 v2.12.1-0.20230315145327-53ed6a882960/go.mod h1:FNAYs5H3xs8v0OFmNgZtiMAzIMXd/6TJmO0uZuNn8pQ= +github.com/cs3org/reva/v2 v2.12.1-0.20230315220346-44e55cb0de0a h1:XMIKlCSPVpnFaE+wWCqSPLNwEpwiGSQnBYK/vulzhv4= +github.com/cs3org/reva/v2 v2.12.1-0.20230315220346-44e55cb0de0a/go.mod h1:FNAYs5H3xs8v0OFmNgZtiMAzIMXd/6TJmO0uZuNn8pQ= github.com/cubewise-code/go-mime v0.0.0-20200519001935-8c5762b177d8 h1:Z9lwXumT5ACSmJ7WGnFl+OMLLjpz5uR2fyz7dC255FI= github.com/cubewise-code/go-mime v0.0.0-20200519001935-8c5762b177d8/go.mod h1:4abs/jPXcmJzYoYGF91JF9Uq9s/KL5n1jvFDix8KcqY= github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= diff --git a/services/frontend/pkg/revaconfig/config.go b/services/frontend/pkg/revaconfig/config.go index 70da96c8e..fcb6fde27 100644 --- a/services/frontend/pkg/revaconfig/config.go +++ b/services/frontend/pkg/revaconfig/config.go @@ -228,9 +228,10 @@ func FrontendConfigFromStruct(cfg *config.Config) (map[string]interface{}, error "password": map[string]interface{}{ "enforced": false, "enforced_for": map[string]interface{}{ - "read_only": false, - "read_write": cfg.OCS.WriteablePublicShareMustHavePassword, - "upload_only": cfg.OCS.WriteablePublicShareMustHavePassword, + "read_only": false, + "read_write": cfg.OCS.WriteablePublicShareMustHavePassword, + "read_write_delete": cfg.OCS.WriteablePublicShareMustHavePassword, + "upload_only": cfg.OCS.WriteablePublicShareMustHavePassword, }, }, "expire_date": map[string]interface{}{