From 095231137675e8e67559774141947768931533d1 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 15 Mar 2023 22:33:27 +0100 Subject: [PATCH] add read_write_delete key --- changelog/unreleased/public-link-password.md | 1 + internal/http/services/owncloud/ocs/data/capabilities.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog/unreleased/public-link-password.md b/changelog/unreleased/public-link-password.md index d4f899fa748..f68e3904980 100644 --- a/changelog/unreleased/public-link-password.md +++ b/changelog/unreleased/public-link-password.md @@ -2,5 +2,6 @@ Enhancement: Add config option to enforce passwords on public links Added a new config option to enforce passwords on public links with "Uploader, Editor, Contributor" roles. +https://github.com/cs3org/reva/pull/3731 https://github.com/cs3org/reva/pull/3716 https://github.com/cs3org/reva/pull/3698 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 8d40f59a9e5..33547fe9f3d 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -188,9 +188,10 @@ type CapabilitiesFilesSharingPublicPassword struct { // CapabilitiesFilesSharingPublicPasswordEnforcedFor TODO document type CapabilitiesFilesSharingPublicPasswordEnforcedFor struct { - ReadOnly ocsBool `json:"read_only" xml:"read_only,omitempty" mapstructure:"read_only"` - ReadWrite ocsBool `json:"read_write" xml:"read_write,omitempty" mapstructure:"read_write"` - UploadOnly ocsBool `json:"upload_only" xml:"upload_only,omitempty" mapstructure:"upload_only"` + ReadOnly ocsBool `json:"read_only" xml:"read_only,omitempty" mapstructure:"read_only"` + ReadWrite ocsBool `json:"read_write" xml:"read_write,omitempty" mapstructure:"read_write"` + ReadWriteDelete ocsBool `json:"read_write_delete" xml:"read_write_delete,omitempty" mapstructure:"read_write_delete"` + UploadOnly ocsBool `json:"upload_only" xml:"upload_only,omitempty" mapstructure:"upload_only"` } // CapabilitiesFilesSharingPublicExpireDate TODO document