From d3db4ee103903e97ec2cfb8430b14699f1f6e8ae Mon Sep 17 00:00:00 2001 From: Florin Peter Date: Wed, 1 May 2013 11:04:40 +0200 Subject: fixed re-share problems --- apps/files_encryption/hooks/hooks.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/files_encryption/hooks') diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 67d289ad68a..c0e493752a0 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -200,13 +200,13 @@ class Hooks { $util = new Util($view, $userId); $path = $util->fileIdToPath($params['itemSource']); - //check if this is a reshare action, that's true if the item source is already shared with me - $sharedItem = \OCP\Share::getItemSharedWithBySource($params['itemType'], $params['itemSource']); + //check if this is a reshare action, that's true if the item source is already shared with me + $sharedItem = \OCP\Share::getItemSharedWithBySource($params['itemType'], $params['fileSource']); if ($sharedItem) { // if it is a re-share than the file is located in my Shared folder $path = '/Shared'.$sharedItem['file_target']; } else { - $path = $util->fileIdToPath($params['itemSource']); + $path = $util->fileIdToPath($params['fileSource']); } $sharingEnabled = \OCP\Share::isEnabled(); @@ -224,7 +224,7 @@ class Hooks { $failed = array(); // Attempt to set shareKey - if (!$util->setSharedFileKeyfiles($session, $usersSharing, $path)) { + if (!$util->setSharedFileKeyfiles($session, $usersSharing, $path)) { $failed[] = $path; } -- cgit v1.2.3