summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-12-04 16:13:14 +0100
committerRobin Appelman <robin@icewind.nl>2019-12-05 16:50:45 +0100
commit78050ec531f08bcce6449a8273435f68111b606b (patch)
treeab6bbc2aefd4c6a78de65b016c3fe4de0e3635e3 /apps/files_versions/lib/Versions/LegacyVersionsBackend.php
parent3eb3c3f884e1791059e71f5106880ea507f5c12f (diff)
downloadnextcloud-server-78050ec531f08bcce6449a8273435f68111b606b.tar.gz
nextcloud-server-78050ec531f08bcce6449a8273435f68111b606b.zip
Fix restoring shared versions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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 46bd2ea8d46..33ce62d0203 100644
--- a/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
+++ b/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
@@ -91,7 +91,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 {