diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-01 15:00:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-01 15:00:24 +0200 |
commit | 8e5913225557b62aea20989b691adec8870dfa85 (patch) | |
tree | d6a4ee54433b52c961f48269963b0751dc5a0077 /apps | |
parent | a0a43de49977085a8b605a37ffd4f86b1e4cc6e3 (diff) | |
parent | e26187c7fff70a7006ba27b8d58622100b8c40c3 (diff) | |
download | nextcloud-server-8e5913225557b62aea20989b691adec8870dfa85.tar.gz nextcloud-server-8e5913225557b62aea20989b691adec8870dfa85.zip |
Merge pull request #16624 from nextcloud/bugfix/noid/versions-fetch-owner-only
Make sure we only fetch the file by id for the actual owner
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); |