diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/lib/Storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php index c09633be3c1..c42083ff352 100644 --- a/apps/files_versions/lib/Storage.php +++ b/apps/files_versions/lib/Storage.php @@ -183,7 +183,7 @@ class Storage { $eventDispatcher = \OC::$server->getEventDispatcher(); $fileInfo = $files_view->getFileInfo($filename); $id = $fileInfo->getId(); - $nodes = \OC::$server->getRootFolder()->getById($id); + $nodes = \OC::$server->getRootFolder()->getUserFolder($uid)->getById($id); foreach ($nodes as $node) { $event = new CreateVersionEvent($node); $eventDispatcher->dispatch('OCA\Files_Versions::createVersion', $event); |