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');
}
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