]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add route for download of versions
authorLukas Reschke <lukas@owncloud.com>
Tue, 2 Dec 2014 16:52:31 +0000 (17:52 +0100)
committerLukas Reschke <lukas@owncloud.com>
Tue, 2 Dec 2014 16:52:31 +0000 (17:52 +0100)
Otherwise on master it was not possible anymore to download older versions.

Fixes itself.

apps/files_versions/appinfo/routes.php
apps/files_versions/download.php

index 057834213e4d9e15bb81876e3875290f9b89015c..83c7746d1e7df1a384c0221bdfb4a9dc3fa2ee41 100644 (file)
@@ -11,6 +11,8 @@ function() {
        require_once __DIR__ . '/../ajax/preview.php';
 });
 
+$this->create('files_versions_download', 'download.php')
+       ->actionInclude('files_versions/download.php');
 $this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php')
        ->actionInclude('files_versions/ajax/getVersions.php');
 $this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php')
index 2fe56d2e6383e4089729b9d53f3b4409c0ced431..e5139450f5ee5a50fb7fc01d37237637cbb176c6 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 OCP\JSON::checkAppEnabled('files_versions');
-//OCP\JSON::callCheck();
+OCP\JSON::checkLoggedIn();
 
 $file = $_GET['file'];
 $revision=(int)$_GET['revision'];