necessary changes in util.php after the changes in \OCP\Share::getUsersSharingFile() (fe58e4b1a6
)
This commit is contained in:
parent
39c717b24c
commit
935d039860
1 changed files with 6 additions and 3 deletions
|
@ -878,12 +878,15 @@ class Util {
|
||||||
$recoveryEnabled = $this->recoveryEnabled();
|
$recoveryEnabled = $this->recoveryEnabled();
|
||||||
|
|
||||||
// Make sure that a share key is generated for the owner too
|
// 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 ) {
|
if ( $sharingEnabled ) {
|
||||||
|
|
||||||
// Find out who, if anyone, is sharing the file
|
// 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 );
|
$userIds = array_merge( $userIds, $shareUids );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue