summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_versions/lib/Storage.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php
index 9a0fe0a7b37..f0cd9d65310 100644
--- a/apps/files_versions/lib/Storage.php
+++ b/apps/files_versions/lib/Storage.php
@@ -313,6 +313,7 @@ class Storage {
*
* @param string $file file name
* @param int $revision revision timestamp
+ * @return bool
*/
public static function rollback($file, $revision) {
@@ -323,13 +324,10 @@ class Storage {
if ($uid === null || trim($filename, '/') === '') {
return false;
}
+
$users_view = new View('/'.$uid);
$files_view = new View('/'. User::getUser().'/files');
- if (!$files_view->isUpdatable($filename)) {
- return false;
- }
-
$versionCreated = false;
$fileInfo = $files_view->getFileInfo($file);