diff options
author | Robin Appelman <robin@icewind.nl> | 2025-07-07 17:03:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-07-10 20:04:09 +0200 |
commit | 5a4faba3a87ee8f1881f82ddb6dc2ae8618b79bf (patch) | |
tree | 07ed412ac934859380bcfb36660227c990ce99a2 | |
parent | f9cdb947fcf928f431001fae02e2dcc05d5ebcbd (diff) | |
download | nextcloud-server-dont-check-share-folder-remote.tar.gz nextcloud-server-dont-check-share-folder-remote.zip |
fix: don't check if a custom share folder is configured for non-user sharesdont-check-share-folder-remote
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Share20/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 01664c6a0a3..b2779f3da4e 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -706,7 +706,7 @@ class Manager implements IManager { // Generate the target $defaultShareFolder = $this->config->getSystemValue('share_folder', '/'); $allowCustomShareFolder = $this->config->getSystemValueBool('sharing.allow_custom_share_folder', true); - if ($allowCustomShareFolder) { + if ($share->getShareType() === IShare::TYPE_USER && $allowCustomShareFolder) { $shareFolder = $this->config->getUserValue($share->getSharedWith(), Application::APP_ID, 'share_folder', $defaultShareFolder); } else { $shareFolder = $defaultShareFolder; |