Skip to content

Commit f5b78e5

Browse files
committed
fix: don't check if a custom share folder is configured for user shares
Signed-off-by: Robin Appelman <[email protected]>
1 parent f9cdb94 commit f5b78e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Share20/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ 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) {
710-
$shareFolder = $this->config->getUserValue($share->getSharedWith(), Application::APP_ID, 'share_folder', $defaultShareFolder);
709+
if ($share->getShareType() === IShare::TYPE_USER && $allowCustomShareFolder) {
710+
$shareFolder = $this->config->getUserValuve($share->getSharedWith(), Application::APP_ID, 'share_folder', $defaultShareFolder);
711711
} else {
712712
$shareFolder = $defaultShareFolder;
713713
}

0 commit comments

Comments
 (0)