From 8ddec9187094d6c78f8fe1012032c6dbe14a39de Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 18 Aug 2021 10:53:52 -0400 Subject: [PATCH] Allow snapshot downloading --- web/views/archive.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/views/archive.php b/web/views/archive.php index 223b31a61..8a0f208c4 100644 --- a/web/views/archive.php +++ b/web/views/archive.php @@ -18,7 +18,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // -if ( !canView('Events') ) { +if (!(canView('Events') or canView('Snapshots'))) { $view = 'error'; return; } @@ -57,7 +57,7 @@ $filename = isset($_REQUEST['file'])?$_REQUEST['file']:"zmExport_$connkey.$file_ $filename = str_replace('/', '', $filename); # protect system files. must be a filename, not a path $filename_path = ZM_DIR_EXPORTS.'/'.$filename; -ZM\Debug("downloading archive from $filename_path"); +ZM\Debug('downloading archive from '.$filename_path); if ( is_readable($filename_path) ) { while (ob_get_level()) { ob_end_clean();