Can export events if canView Snapshots. Event->canView will filter events that are not in a snapshot

This commit is contained in:
Isaac Connor 2021-08-18 10:11:18 -04:00
parent c12d88d874
commit e7e8996060
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) {
ajaxError('No event id(s) supplied'); ajaxError('No event id(s) supplied');
} }
if ( canView('Events') ) { if ( canView('Events') or canView('Snapshots') ) {
switch ( $_REQUEST['action'] ) { switch ( $_REQUEST['action'] ) {
case 'video' : case 'video' :
if ( empty($_REQUEST['videoFormat']) ) { if ( empty($_REQUEST['videoFormat']) ) {
@ -112,7 +112,7 @@ if ( canView('Events') ) {
false,#detail false,#detail
false,#frames false,#frames
false,#images false,#images
$exportVideo, true, #$exportVideo,
false,#Misc false,#Misc
$exportFormat, $exportFormat,
false#,#Compress false#,#Compress