Skip to content

Commit

Permalink
Attempt to get the actual user mount for the share
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Oct 28, 2021
1 parent aef8c84 commit 20fc6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected function generalCreateChecks(IShare $share) {

if (!$isFederatedShare && $share->getNode()->getOwner() && $share->getNode()->getOwner()->getUID() !== $share->getSharedBy()) {
try {
$userMount = $this->rootFolder->get($share->getNode()->getPath());
$userMount = $userFolder->get($share->getTarget());
} catch (NotFoundException $e) {
throw new GenericShareException('Could not get proper share mount for ' . $share->getNode()->getId() . '. Failing since else the next calls are called with null');
}
Expand Down

0 comments on commit 20fc6a7

Please sign in to comment.