setup owner when getting users for share

This commit is contained in:
Robin Appelman 2015-09-03 14:34:46 +02:00
parent fd7b210654
commit 8123df9489
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@
namespace OC\Share;
use OC\Files\Filesystem;
use OCP\IUserSession;
use OCP\IDBConnection;
use OCP\IConfig;
@ -120,6 +121,7 @@ class Share extends Constants {
*/
public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false) {
Filesystem::initMountPoints($ownerUser);
$shares = $sharePaths = $fileTargets = array();
$publicShare = false;
$remoteShare = false;