necessary changes in util.php after the changes in \OCP\Share::getUsersSharingFile() (fe58e4b1a6)

This commit is contained in:
Björn Schießle 2013-04-18 17:53:59 +02:00
parent 39c717b24c
commit 935d039860
1 changed files with 6 additions and 3 deletions

View File

@ -878,12 +878,15 @@ class Util {
$recoveryEnabled = $this->recoveryEnabled();
// Make sure that a share key is generated for the owner too
$userIds = array( $this->userId );
list($owner, $ownerPath) = $this->getUidAndFilename($filePath);
//$userIds = array( $this->userId );
$userIds = array();
if ( $sharingEnabled ) {
// Find out who, if anyone, is sharing the file
$shareUids = \OCP\Share::getUsersSharingFile( $filePath, true, true, true );
$shareUids = \OCP\Share::getUsersSharingFile( $ownerPath, $owner,true, true, true );
$userIds = array_merge( $userIds, $shareUids );