Can export events if canView Snapshots. Event->canView will filter events that are not in a snapshot
This commit is contained in:
parent
c12d88d874
commit
e7e8996060
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue