summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-09 21:17:24 +0100
committerGitHub <noreply@github.com>2019-12-09 21:17:24 +0100
commit061b9bb0e7445a005f07ca98bdc21c0180d4182f (patch)
tree3c6e019762c2030fe506323252bc1d6739fd828d /apps/files_versions/lib/Versions/LegacyVersionsBackend.php
parent905cd3762636107687f5257b4a2f3ac7809536d9 (diff)
parent829f4a1a1be80bb09721ba566bb7448ae90e4616 (diff)
downloadnextcloud-server-061b9bb0e7445a005f07ca98bdc21c0180d4182f.tar.gz
nextcloud-server-061b9bb0e7445a005f07ca98bdc21c0180d4182f.zip
Merge pull request #18231 from nextcloud/fix/shared_version_restore
Fix restoring shared versions
Diffstat (limited to 'apps/files_versions/lib/Versions/LegacyVersionsBackend.php')
-rw-r--r--apps/files_versions/lib/Versions/LegacyVersionsBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Versions/LegacyVersionsBackend.php b/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
index b441a16ca82..db8530d1303 100644
--- a/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
+++ b/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
@@ -97,7 +97,7 @@ class LegacyVersionsBackend implements IVersionBackend {
}
public function rollback(IVersion $version) {
- return Storage::rollback($version->getVersionPath(), $version->getRevisionId());
+ return Storage::rollback($version->getVersionPath(), $version->getRevisionId(), $version->getUser());
}
private function getVersionFolder(IUser $user): Folder {