From 6f953aea4f8dc236d02bcbe0a1485b2be4ad7d7f Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte <39946305+gmgigi96@users.noreply.github.com> Date: Tue, 4 Apr 2023 17:55:30 +0200 Subject: [PATCH] Fix capabilities for files sharing (#3771) --- .../unreleased/deny-default-reshare-capabilities copy.md | 7 +++++++ internal/http/services/owncloud/ocs/data/capabilities.go | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 changelog/unreleased/deny-default-reshare-capabilities copy.md diff --git a/changelog/unreleased/deny-default-reshare-capabilities copy.md b/changelog/unreleased/deny-default-reshare-capabilities copy.md new file mode 100644 index 0000000000..fa2630f938 --- /dev/null +++ b/changelog/unreleased/deny-default-reshare-capabilities copy.md @@ -0,0 +1,7 @@ +Bugfix: Fix files sharing capabilities + +A bug was preventing setting some capabilities +(ResharingDefault and DenyAccess) for files sharing +from the configuration file + +https://github.com/cs3org/reva/pull/3771 \ No newline at end of file diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index ab0aaaa5ec..3eccd7889b 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -148,9 +148,9 @@ type CapabilitiesDav struct { // CapabilitiesFilesSharing TODO document. type CapabilitiesFilesSharing struct { APIEnabled ocsBool `json:"api_enabled" xml:"api_enabled" mapstructure:"api_enabled"` - Resharing ocsBool `json:"resharing" xml:"resharing"` - ResharingDefault ocsBool `json:"resharing_default" xml:"resharing_default"` - DenyAccess ocsBool `json:"deny_access" xml:"deny_access"` + Resharing ocsBool `json:"resharing" xml:"resharing" mapstructure:"resharing"` + ResharingDefault ocsBool `json:"resharing_default" xml:"resharing_default" mapstructure:"resharing_default"` + DenyAccess ocsBool `json:"deny_access" xml:"deny_access" mapstructure:"deny_access"` GroupSharing ocsBool `json:"group_sharing" xml:"group_sharing" mapstructure:"group_sharing"` AutoAcceptShare ocsBool `json:"auto_accept_share" xml:"auto_accept_share" mapstructure:"auto_accept_share"` ShareWithGroupMembersOnly ocsBool `json:"share_with_group_members_only" xml:"share_with_group_members_only" mapstructure:"share_with_group_members_only"`