Use owner FS for guests

This commit is contained in:
Victor Dubiniuk 2014-07-04 19:10:25 +03:00
parent 4da91f6d38
commit 78e8163c78

View File

@ -153,6 +153,9 @@ class File {
$rootLinkItem = \OCP\Share::resolveReShare($this->sharing[0]); $rootLinkItem = \OCP\Share::resolveReShare($this->sharing[0]);
if (isset($rootLinkItem['uid_owner'])){ if (isset($rootLinkItem['uid_owner'])){
$owner = $rootLinkItem['uid_owner']; $owner = $rootLinkItem['uid_owner'];
\OCP\JSON::checkUserExists($rootLinkItem['uid_owner']);
\OC_Util::tearDownFS();
\OC_Util::setupFS($rootLinkItem['uid_owner']);
} else { } else {
throw new \Exception($this->fileId . ' is a broken share'); throw new \Exception($this->fileId . ' is a broken share');
} }