do not allow editing events that do not belong to us

This commit is contained in:
Mario Vavti
2019-04-30 12:08:19 +02:00
parent 0b062d0b8a
commit a04689b784
2 changed files with 10 additions and 1 deletions

View File

@@ -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}}');
}
});