From a04689b7840f336fed92ec648754cca02dcd90f0 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 30 Apr 2019 12:08:19 +0200 Subject: do not allow editing events that do not belong to us --- view/tpl/cdav_calendar.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'view/tpl') 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}}'); } }); -- cgit v1.2.3