From c4e0c025267a2d65fd134dc256d50a764e5c9267 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 2 Dec 2014 17:52:31 +0100 Subject: [PATCH] Add route for download of versions Otherwise on master it was not possible anymore to download older versions. Fixes itself. --- apps/files_versions/appinfo/routes.php | 2 ++ apps/files_versions/download.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php index 057834213e..83c7746d1e 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 2fe56d2e63..e5139450f5 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'];