Skip to content

Commit 5a4faba

Browse files
committed
fix: don't check if a custom share folder is configured for non-user shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent f9cdb94 commit 5a4faba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ public function createShare(IShare $share) {
706706
// Generate the target
707707
$defaultShareFolder = $this->config->getSystemValue('share_folder', '/');
708708
$allowCustomShareFolder = $this->config->getSystemValueBool('sharing.allow_custom_share_folder', true);
709-
if ($allowCustomShareFolder) {
709+
if ($share->getShareType() === IShare::TYPE_USER && $allowCustomShareFolder) {
710710
$shareFolder = $this->config->getUserValue($share->getSharedWith(), Application::APP_ID, 'share_folder', $defaultShareFolder);
711711
} else {
712712
$shareFolder = $defaultShareFolder;

0 commit comments

Comments
 (0)