correctif sur admin calendar

This commit is contained in:
afornerot 2021-06-30 09:29:31 +02:00
parent 5271f992a7
commit 14283a731e
1 changed files with 6 additions and 1 deletions

View File

@ -288,7 +288,12 @@
{% if entity.id is defined %}
{% for calendar in calendars %}
{% if calendar.id==entity.id %}
showCalendar({{ calendar.id }}, {{ calendar.canadd }});
{% if access=="config" %}
{% set calendarcanadd=true %}
{% else %}
{% set calendarcanadd=calendar.canadd %}
{% endif %}
showCalendar({{ calendar.id }}, {{ calendarcanadd }});
{% endif %}
{% endfor %}
{% else %}