aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cdav_calendar.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-04-30 12:08:19 +0200
committerMario Vavti <mario@mariovavti.com>2019-04-30 12:08:19 +0200
commita04689b7840f336fed92ec648754cca02dcd90f0 (patch)
treecdcc3f5cd58a109f336d30329baec5e7b82db685 /view/tpl/cdav_calendar.tpl
parent0b062d0b8ae89b40b4e036f874f6af3780c30451 (diff)
downloadvolse-hubzilla-a04689b7840f336fed92ec648754cca02dcd90f0.tar.gz
volse-hubzilla-a04689b7840f336fed92ec648754cca02dcd90f0.tar.bz2
volse-hubzilla-a04689b7840f336fed92ec648754cca02dcd90f0.zip
do not allow editing events that do not belong to us
Diffstat (limited to 'view/tpl/cdav_calendar.tpl')
-rw-r--r--view/tpl/cdav_calendar.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl
index 8b91275ee..827c57b96 100644
--- a/view/tpl/cdav_calendar.tpl
+++ b/view/tpl/cdav_calendar.tpl
@@ -322,7 +322,11 @@ $(document).ready(function() {
$('#id_categories').tagsinput('add', '{{$categories}}'),
$('#id_description').val(resource.description);
$('#id_location').val(resource.location);
- $('#event_submit').html('{{$update}}');
+
+ if(resource.event_xchan !== '{{$channel_hash}}')
+ $('#event_submit').hide();
+ else
+ $('#event_submit').html('{{$update}}');
}
});