setup owner when getting users for share
This commit is contained in:
parent
fd7b210654
commit
8123df9489
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue