From 391fc1fec83d0f91400c753d6c64ce031e9db969 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 16 Aug 2021 10:27:40 -0400 Subject: [PATCH] Use canView.Snapshots for snapshot permissions instead of canView.Events --- web/skins/classic/views/js/snapshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/snapshot.js b/web/skins/classic/views/js/snapshot.js index c655cc79b..b766a6e01 100644 --- a/web/skins/classic/views/js/snapshot.js +++ b/web/skins/classic/views/js/snapshot.js @@ -84,7 +84,7 @@ function initPage() { }); // Manage the EXPORT button - $j('#downloadBtn').prop('disabled', !canView.Events); + $j('#downloadBtn').prop('disabled', !canView.Snapshots); bindButton('#downloadBtn', 'click', null, function onDownloadClick(evt) { evt.preventDefault(); formData = { @@ -110,7 +110,7 @@ function initPage() { downloadTimer = setInterval(downloadProgress, 500); }); - $j('#exportBtn').prop('disabled', !canView.Events); + $j('#exportBtn').prop('disabled', !canView.Snapshots); bindButton('#exportBtn', 'click', null, function onExportClick(evt) { console.log('export clicked'); evt.preventDefault();