events.cgi: add read-only-mode

This commit is contained in:
Milan
2022-04-22 13:36:36 +02:00
parent d9f853dee5
commit 36204c5a6b
4 changed files with 5 additions and 1 deletions

View File

@@ -230,6 +230,7 @@ sub check_params($$) {
till_date => $till_date,
event_id => $event_id,
debug => $debug,
ro => $params->{ro}//'' ? 1 : 0
};
}

View File

@@ -1828,7 +1828,8 @@ sub check_params ($$) {
disable_event_sync => $disable_event_sync,
extern => $extern,
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;

View File

@@ -42,6 +42,7 @@ if ( $0 =~ /aggregate.*?\.cgi$/ ) {
$params->{exclude_locations} = 1;
$params->{exclude_projects} = 1;
$params->{exclude_event_images} = 1;
$params->{ro} = 1;
$params->{recordings} = 1;
my $request = {

View File

@@ -22,6 +22,7 @@ if ( $0 =~ /events.*?\.cgi$/ ) {
$params->{exclude_locations} = 1;
$params->{exclude_projects} = 1;
$params->{exclude_event_images} = 1;
$params->{ro} = 1;
my $request = {
url => $ENV{QUERY_STRING},