From 40b38dcf47ff96d7ea4322f064013cd3e0672d51 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Mon, 25 Apr 2022 11:47:35 +0200 Subject: [PATCH] Update password enforcement & expiration date capabilities for public links --- changelog/unreleased/update-linkshare-capabilities.md | 5 +++++ extensions/storage/pkg/command/frontend.go | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 changelog/unreleased/update-linkshare-capabilities.md diff --git a/changelog/unreleased/update-linkshare-capabilities.md b/changelog/unreleased/update-linkshare-capabilities.md new file mode 100644 index 0000000000..9ad415ec7b --- /dev/null +++ b/changelog/unreleased/update-linkshare-capabilities.md @@ -0,0 +1,5 @@ +Enhancement: Update linkshare capabilities + +We have updated the capabilities regarding password enforcement and expiration dates of public links. They were previously hardcoded in a way that didn't reflect the actual backend functionality anymore. + +https://github.com/owncloud/ocis/pull/3579 diff --git a/extensions/storage/pkg/command/frontend.go b/extensions/storage/pkg/command/frontend.go index 26dba9add0..45af7b96c1 100644 --- a/extensions/storage/pkg/command/frontend.go +++ b/extensions/storage/pkg/command/frontend.go @@ -254,15 +254,15 @@ func frontendConfigFromStruct(c *cli.Context, cfg *config.Config, filesCfg map[s "multiple": true, "supports_upload_only": true, "password": map[string]interface{}{ - "enforced": true, + "enforced": false, "enforced_for": map[string]interface{}{ - "read_only": true, - "read_write": true, - "upload_only": true, + "read_only": false, + "read_write": false, + "upload_only": false, }, }, "expire_date": map[string]interface{}{ - "enabled": false, + "enabled": true, }, "can_edit": true, },