mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
also call generateTarget for group share to add the correct prefix if share_folder is defined in config.php
This commit is contained in:
parent
4c00be4961
commit
223cca2a07
1 changed files with 5 additions and 4 deletions
|
|
@ -1825,9 +1825,10 @@ class Share extends \OC\Share\Constants {
|
|||
if (in_array(\OCP\User::getUser(), $users)) {
|
||||
unset($users[array_search(\OCP\User::getUser(), $users)]);
|
||||
}
|
||||
$groupItemTarget = Helper::generateTarget($itemType, $itemSource, $shareType, $shareWith['group'],
|
||||
$uidOwner, $suggestedItemTarget);
|
||||
$groupFileTarget = $filePath;
|
||||
$groupItemTarget = Helper::generateTarget($itemType, $itemSource,
|
||||
$shareType, $shareWith['group'], $uidOwner, $suggestedItemTarget);
|
||||
$groupFileTarget = Helper::generateTarget($itemType, $itemSource,
|
||||
$shareType, $shareWith['group'], $uidOwner, $filePath);
|
||||
|
||||
// add group share to table and remember the id as parent
|
||||
$queriesToExecute['groupShare'] = array(
|
||||
|
|
@ -1840,7 +1841,7 @@ class Share extends \OC\Share\Constants {
|
|||
'permissions' => $permissions,
|
||||
'shareTime' => time(),
|
||||
'fileSource' => $fileSource,
|
||||
'fileTarget' => $filePath,
|
||||
'fileTarget' => $groupFileTarget,
|
||||
'token' => $token,
|
||||
'parent' => $parent,
|
||||
'expiration' => $expirationDate,
|
||||
|
|
|
|||
Loading…
Reference in a new issue