events.cgi: add read-only-mode
This commit is contained in:
@@ -230,6 +230,7 @@ sub check_params($$) {
|
|||||||
till_date => $till_date,
|
till_date => $till_date,
|
||||||
event_id => $event_id,
|
event_id => $event_id,
|
||||||
debug => $debug,
|
debug => $debug,
|
||||||
|
ro => $params->{ro}//'' ? 1 : 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1828,7 +1828,8 @@ sub check_params ($$) {
|
|||||||
disable_event_sync => $disable_event_sync,
|
disable_event_sync => $disable_event_sync,
|
||||||
extern => $extern,
|
extern => $extern,
|
||||||
recordings => $recordings,
|
recordings => $recordings,
|
||||||
set_no_listen_keys => $set_no_listen_keys
|
set_no_listen_keys => $set_no_listen_keys,
|
||||||
|
ro => ($params->{ro}//'') ? 1 : 0
|
||||||
};
|
};
|
||||||
|
|
||||||
return $checked;
|
return $checked;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ if ( $0 =~ /aggregate.*?\.cgi$/ ) {
|
|||||||
$params->{exclude_locations} = 1;
|
$params->{exclude_locations} = 1;
|
||||||
$params->{exclude_projects} = 1;
|
$params->{exclude_projects} = 1;
|
||||||
$params->{exclude_event_images} = 1;
|
$params->{exclude_event_images} = 1;
|
||||||
|
$params->{ro} = 1;
|
||||||
$params->{recordings} = 1;
|
$params->{recordings} = 1;
|
||||||
|
|
||||||
my $request = {
|
my $request = {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ if ( $0 =~ /events.*?\.cgi$/ ) {
|
|||||||
$params->{exclude_locations} = 1;
|
$params->{exclude_locations} = 1;
|
||||||
$params->{exclude_projects} = 1;
|
$params->{exclude_projects} = 1;
|
||||||
$params->{exclude_event_images} = 1;
|
$params->{exclude_event_images} = 1;
|
||||||
|
$params->{ro} = 1;
|
||||||
|
|
||||||
my $request = {
|
my $request = {
|
||||||
url => $ENV{QUERY_STRING},
|
url => $ENV{QUERY_STRING},
|
||||||
|
|||||||
Reference in New Issue
Block a user