aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-03 14:01:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-03 14:01:58 +0100
commit6daa588e1cd1fe099f6bd571064ea4cc56d8f036 (patch)
tree34f3c8b05ea924fbf1f43e04c0b57759806b38fd /apps/files_versions
parent7dcf0b02aafd3645da954fd624a6242df87a0f8e (diff)
parentc4e0c025267a2d65fd134dc256d50a764e5c9267 (diff)
downloadnextcloud-server-6daa588e1cd1fe099f6bd571064ea4cc56d8f036.tar.gz
nextcloud-server-6daa588e1cd1fe099f6bd571064ea4cc56d8f036.zip
Merge pull request #12556 from owncloud/add-route-for-versions
Add route for download of versions
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/appinfo/routes.php2
-rw-r--r--apps/files_versions/download.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index 057834213e4..83c7746d1e7 100644
--- a/apps/files_versions/appinfo/routes.php
+++ b/apps/files_versions/appinfo/routes.php
@@ -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')
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php
index 2fe56d2e638..e5139450f5e 100644
--- a/apps/files_versions/download.php
+++ b/apps/files_versions/download.php
@@ -22,7 +22,7 @@
*/
OCP\JSON::checkAppEnabled('files_versions');
-//OCP\JSON::callCheck();
+OCP\JSON::checkLoggedIn();
$file = $_GET['file'];
$revision=(int)$_GET['revision'];