From e7e8996060e61a108048ad7c62be9b8a6f315b66 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 18 Aug 2021 10:11:18 -0400 Subject: [PATCH] Can export events if canView Snapshots. Event->canView will filter events that are not in a snapshot --- web/ajax/event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ajax/event.php b/web/ajax/event.php index 03c54ada8..906fe255a 100644 --- a/web/ajax/event.php +++ b/web/ajax/event.php @@ -5,7 +5,7 @@ if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) { ajaxError('No event id(s) supplied'); } -if ( canView('Events') ) { +if ( canView('Events') or canView('Snapshots') ) { switch ( $_REQUEST['action'] ) { case 'video' : if ( empty($_REQUEST['videoFormat']) ) { @@ -112,7 +112,7 @@ if ( canView('Events') ) { false,#detail false,#frames false,#images - $exportVideo, + true, #$exportVideo, false,#Misc $exportFormat, false#,#Compress